Function at 0x474296
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x78e580]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x28], eax
xor esi, esi
mov eax, dword [esp + 0x88]
push edi
mov dword [esp + 0x24], eax
mov edi, esi
mov eax, dword [esp + 0x90]
push 0x7906a4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], esi
movups xmmword [esp + 0x6c], xmm0
mov dword [esp + 0x18], esi
call fcn.0044d032
test byte [ebp + 0xc], 0x10
mov eax, dword [ebp]
pop ecx
mov dword [esp + 0x28], eax
je 0x47432d
push ebx
push dword [esp + 0x30]
push eax
call fcn.00472863
add esp, 0xc
test eax, eax
je 0x47432d
push 0x7906a4
mov dword [eax + 0x14], 3
call fcn.0044d04b
pop ecx
xor eax, eax
jmp 0x4749b6
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47436a
push 0x7906a4
call fcn.0044d04b
mov eax, dword [ebp + 0x14]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004723dc
lea eax, [esp + 0x6c]
push 0x7906a4
mov dword [esp + 0x40], eax
call fcn.0044d032
add esp, 0x10
jmp 0x474372
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [ebp]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [0x790690]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
mov dword [0x790690], eax
mov eax, dword [ebx]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 4
push dword [eax]
push ebp
call fcn.004749c9
pop ecx
pop ecx
test eax, eax
je 0x4743c0
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
jmp 0x4743ca
mov dword [esp + 0x20], esi
jmp 0x4743ca
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4743dc
push edi
push ebx
push dword [esp + 0x30]
call fcn.00473d6f
add esp, 0xc
mov eax, dword [0x78e394]
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x48], eax
call fcn.00473bfc
pop ecx
pop ecx
test eax, eax
je 0x474411
mov edi, dword [eax + 4]
mov eax, edi
mov dword [esp + 0x34], edi
test edi, edi
je 0x474419
lea ecx, [edi + 0x14]
mov dword [esp + 0x34], edi
inc dword [ecx]
mov dword [esp + 0x38], ecx
jmp 0x474420
mov edi, esi
mov dword [esp + 0x34], esi
mov eax, esi
add eax, 0x14
mov dword [esp + 0x38], eax
test byte [ebp + 0xc], 2
mov dword [esp + 0x54], 0x20001
je 0x4744d7
cmp dword [esp + 0x20], 0
je 0x4744d7
mov eax, dword [ebx]
mov dword [esp + 0x58], 1
push 0x7906a4
mov eax, dword [eax]
mov dword [esp + 0x60], eax
call fcn.0044d04b
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 0xc]
push dword [esp + 0x24]
shr eax, 0xa
movzx eax, al
inc eax
push eax
push dword [esp + 0x40]
push dword [esp + 0x34]
call fcn.004799c5
push dword [esp + 0x30]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x70]
push eax
call fcn.00472809
add esp, 0x28
test eax, eax
jne 0x4744a6
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
mov dword [esp + 0x58], eax
push 0x7906a4
call fcn.0044d032
cmp dword [esp + 0x5c], 0
pop ecx
mov dword [esp + 0x5c], 4
mov dword [esp + 0x14], 1
je 0x47486a
cmp dword [esp + 0x58], 3
je 0x4743ca
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x474599
push 1
push eax
mov dword [esp + 0x60], 2
call fcn.004ee3c4
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x47458a
mov edi, dword [esp + 0x3c]
cmp dword [ebp + 0x20], 0
je 0x474511
mov eax, dword [esp + 0x2c]
cmp dword [ebp + 0x20], eax
jne 0x47456c
mov ebx, dword [ebp + 0x14]
mov eax, ebx
mov esi, dword [ebp + 0x18]
or eax, 2
push 0x7906a4
mov dword [ebp + 0x14], eax
call fcn.0044d04b
push dword [ebp]
mov eax, dword [edi + 0xc]
push dword [esp + 0x24]
shr eax, 0xa
movzx eax, al
inc eax
push eax
lea eax, [esp + 0x5c]
push eax
call esi
neg eax
push 0x7906a4
sbb esi, esi
inc esi
call fcn.0044d032
add esp, 0x18
test bl, 2
jne 0x47455d
and dword [ebp + 0x14], 0xfffffffd
test esi, esi
je 0x47456c
push ebp
push dword [edi + 0x28]
call fcn.004ee3a5
pop ecx
pop ecx
push 1
push ebp
push dword [edi + 0x28]
call fcn.004ee46e
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x474502
mov edi, dword [esp + 0x34]
xor esi, esi
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x58], 3
mov ebp, dword [esp + 0x3c]
je 0x4743ca
test edi, edi
je 0x4746b9
mov eax, dword [esp + 0x38]
mov ebx, edi
mov dword [esp + 0x58], 1
inc dword [eax]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x38], ebx
test eax, 0x10000
jne 0x47467e
movzx eax, ax
test eax, eax
jne 0x474654
cmp dword [ebx + 0xc], eax
je 0x4745dc
mov eax, dword [esp + 0x2c]
cmp dword [ebx + 0xc], eax
jne 0x474654
mov eax, dword [esp + 0x40]
cmp dword [ebx], eax
jae 0x474654
push 0x7906a4
call fcn.0044d04b
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 0xc]
push dword [esp + 0x24]
shr eax, 0xa
movzx eax, al
inc eax
push eax
push dword [esp + 0x40]
push dword [ebx + 0x1c]
call fcn.004799c5
push dword [esp + 0x30]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x70]
push eax
call fcn.00472809
add esp, 0x28
test eax, eax
jne 0x47463c
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
mov dword [esp + 0x58], eax
push 0x7906a4
call fcn.0044d032
xor eax, eax
inc eax
pop ecx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x58], eax
jne 0x474657
mov esi, dword [ebx + 4]
test esi, esi
je 0x47465e
inc dword [esi + 0x14]
push edi
push dword [esp + 0x14]
push dword [esp + 0x30]
call fcn.00473d6f
add esp, 0xc
mov edi, ebx
mov ebx, esi
test esi, esi
je 0x474692
xor esi, esi
jmp 0x4745b1
mov ebx, dword [esp + 0x10]
push edi
push ebx
push dword [esp + 0x30]
call fcn.00473d6f
add esp, 0xc
jmp 0x474696
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x38]
mov edi, eax
je 0x474868
cmp dword [esp + 0x58], 3
push 0
mov dword [esp + 0x38], edi
pop esi
je 0x4743ca
mov eax, dword [esp + 0x54]
and eax, 0xfffffffe
or eax, 2
test byte [ebp + 0xc], 4
mov dword [esp + 0x54], eax
je 0x474777
mov esi, dword [esp + 0x20]
test esi, esi
je 0x474777
mov eax, dword [ebx]
mov dword [esp + 0x58], 1
push 0x7906a4
mov eax, dword [eax]
mov dword [esp + 0x60], eax
call fcn.0044d04b
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 0xc]
push dword [esp + 0x24]
shr eax, 0xa
movzx eax, al
inc eax
push eax
push dword [esp + 0x40]
push esi
call fcn.004799c5
push dword [esp + 0x30]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x70]
push eax
call fcn.00472809
add esp, 0x28
test eax, eax
jne 0x474743
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
mov dword [esp + 0x58], eax
push 0x7906a4
call fcn.0044d032
cmp dword [esp + 0x5c], 0
pop ecx
mov dword [esp + 0x5c], 4
mov dword [esp + 0x14], 1
je 0x474868
cmp dword [esp + 0x58], 3
push 0
pop esi
je 0x4743ca
test edi, edi
je 0x474868
mov dword [esp + 0x58], 1
mov ebx, edi
inc dword [edi + 0x14]
mov eax, dword [ebx + 0x18]
test eax, 0x10000
je 0x47482c
movzx eax, ax
test eax, eax
jne 0x47482c
cmp dword [ebx + 0xc], eax
je 0x4747b3
mov eax, dword [esp + 0x2c]
cmp dword [ebx + 0xc], eax
jne 0x47482c
mov eax, dword [esp + 0x40]
cmp dword [ebx], eax
jae 0x47482c
mov esi, 0x7906a4
push esi
call fcn.0044d04b
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 0xc]
push dword [esp + 0x24]
shr eax, 0xa
movzx eax, al
inc eax
push eax
push dword [esp + 0x40]
push dword [ebx + 0x1c]
call fcn.004799c5
push dword [esp + 0x30]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x70]
push eax
call fcn.00472809
add esp, 0x28
test eax, eax
jne 0x474814
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
mov dword [esp + 0x58], eax
push esi
call fcn.0044d032
xor eax, eax
inc eax
pop ecx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x58], eax
je 0x47482c
xor esi, esi
jmp 0x47482f
mov esi, dword [ebx + 4]
test esi, esi
je 0x474836
inc dword [esi + 0x14]
push ebx
push dword [esp + 0x14]
push dword [esp + 0x30]
call fcn.00473d6f
add esp, 0xc
mov ebx, esi
test esi, esi
jne 0x47478c
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x58], esi
je 0x474868
cmp dword [esp + 0x58], 3
je 0x4743c6
jmp 0x47486a
xor esi, esi
mov eax, dword [esp + 0x54]
and eax, 0xfffffffd
or eax, 4
test byte [ebp + 0xc], 8
mov dword [esp + 0x54], eax
je 0x47495b
cmp dword [esp + 0x20], 0
je 0x47495b
mov eax, dword [esp + 0x10]
mov ebx, esi
mov dword [esp + 0x58], esi
push 0x7906a4
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x60], eax
call fcn.0044d04b
mov eax, dword [ebp + 0x14]
pop ecx
cmp eax, 4
je 0x4748cc
cmp dword [esp + 0x18], 0
jne 0x4748cc
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004723dc
pop ecx
xor ebx, ebx
pop ecx
inc ebx
lea eax, [esp + 0x4c]
xor ecx, ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [esp + 0x20]
shr eax, 0xa
movzx eax, al
inc eax
cmp dword [ebp + 0x14], 4
push eax
lea eax, [esp + 0x6c]
cmove eax, ecx
push eax
push dword [esp + 0x30]
call fcn.004799c5
push dword [esp + 0x2c]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x6c]
push eax
call fcn.00472809
add esp, 0x24
test eax, eax
jne 0x474925
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
mov dword [esp + 0x58], eax
test ebx, ebx
je 0x474934
lea eax, [esp + 0x60]
push eax
call fcn.004725e6
pop ecx
push 0x7906a4
call fcn.0044d032
xor ebx, ebx
mov dword [esp + 0x60], 4
inc ebx
cmp dword [esp + 0x5c], 3
pop ecx
mov dword [esp + 0x14], ebx
je 0x4743c6
jmp 0x47495f
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x474974
push edi
push dword [esp + 0x14]
push dword [esp + 0x30]
call fcn.00473d6f
add esp, 0xc
mov eax, dword [0x790690]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
cmp eax, edx
je 0x474989
mov esi, eax
mov eax, ecx
jmp 0x474979
test esi, esi
je 0x474991
mov dword [esi], ecx
jmp 0x474997
mov dword [0x790690], ecx
push 0x7906a4
call fcn.0044d04b
cmp dword [esp + 0x1c], 0
pop ecx
je 0x4749b4
lea eax, [esp + 0x60]
push eax
call fcn.004725e6
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b5ec4
add esp, 0x6c
ret