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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5489a7
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x8c], 0
lea edi, [ebx + 0x8c]
jne 0x46d7f3
mov esi, dword [ebx + 4]
test esi, esi
je 0x46d7f3
mov eax, esi
call fcn.00436400
test byte [esi + 0x70], 2
je 0x46d2df
test eax, eax
je 0x46d2db
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
test al, al
jne 0x46d2df
mov cl, 1
jmp 0x46d2e1
xor cl, cl
cmp dword [ebx + 0x14], 0
mov byte [esp + 0x30], cl
jne 0x46d317
mov eax, dword [ebx + 4]
cmp dword [eax + 0x18], 0
jle 0x46d317
cmp dword [eax + 0x1c], 0
jle 0x46d317
test cl, cl
je 0x46d317
call fcn.004bc800
test al, al
jne 0x46d310
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0xc], 0
je 0x46d317
mov byte [esp + 0x1b], 1
jmp 0x46d31c
mov byte [esp + 0x1b], 0
mov dword [esp + 0x50], edi
mov byte [esp + 0x54], 0
mov byte [edi], 1
mov dword [esp + 0x80], 0
mov edi, dword [ebx + 0x80]
mov eax, dword [ebx + 0x7c]
cmp eax, edi
mov dword [esp + 0x28], eax
mov esi, edi
jl 0x46d348
mov esi, eax
fld dword [ebx + 0x88]
call fcn.00537c70
mov ebp, eax
add ebp, esi
cmp byte [esp + 0x1b], 0
je 0x46d708
lea ecx, [esp + 0x2c]
call fcn.0041adc0
mov byte [esp + 0x80], 1
fld dword [ebx + 0x84]
sub esp, 8
mov ecx, ebp
fstp dword [esp + 4]
lea esi, [esp + 0x34]
call fcn.0041b9c0
mov esi, eax
mov al, 0x2c
call fcn.0041b970
mov ecx, dword [esp + 0x30]
mov esi, eax
call fcn.0041b9c0
mov esi, eax
mov al, 0x2c
call fcn.0041b970
mov ecx, edi
mov esi, eax
call fcn.0041b9c0
mov esi, eax
add esp, 4
mov al, 0x2c
call fcn.0041b970
push eax
call fcn.0041b9d0
lea eax, [esp + 0x2c]
call fcn.0041b400
cdq
push edx
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x28], edx
call fcn.00490b70
add esp, 8
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x46d54d
push 1
push 1
lea eax, [ebp + ebp*4]
push 2
lea edx, [esp + 0x40]
push edx
mov edi, eax
call fcn.0048fe70
lea esi, [esp + 0x48]
call fcn.004d27e0
lea ecx, [esp + 0x34]
call fcn.0048ff10
mov eax, esi
lea esi, [esp + 0x58]
call fcn.004787a0
mov byte [esp + 0x80], 3
fld dword [ebx + 0x84]
push ecx
lea edx, [esp + 0x38]
fstp dword [esp]
mov eax, 0x59f898
call fcn.00476380
push eax
call fcn.00478940
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x46d45c
xor ecx, ecx
jmp 0x46d462
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
lea edx, [ebp + ebp]
sub ecx, edx
push ecx
mov ecx, dword [ebx + 0x80]
sub eax, edx
push eax
mov eax, dword [ebx + 0x7c]
lea edx, [esp + 0x60]
add ecx, ebp
add eax, ebp
push edx
call fcn.00478ee0
fld dword [ebx + 0x88]
fadd st(0), st(0)
lea edi, [esp + 0x64]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fadd qword [0x572c30]
fstp qword [esp + 0x34]
mov esi, dword [esp + 0x34]
call fcn.00490c90
mov byte [esp + 0x80], 4
fld dword [ebx + 0x88]
push ecx
mov eax, edi
fstp dword [esp]
push eax
call fcn.00490ea0
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x46d4d2
xor edx, edx
xor ecx, ecx
jmp 0x46d4d8
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x80]
mov esi, dword [ebx + 0x7c]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x44], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x3c], eax
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x44], esi
call fcn.00490f60
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00490ba0
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call fcn.00490d00
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x84], 2
call fcn.004787f0
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x46d54d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
jmp 0x46d55b
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edx
push 0
push 0
lea esi, [ebp + ebp]
push esi
push 0
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, ebp
call fcn.0046d810
mov eax, dword [esp + 0x28]
sub eax, esi
push eax
push 0
push esi
push 1
lea ecx, [esp + 0x58]
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x4c], eax
call fcn.0046d810
push esi
push 0
push ebp
push 2
lea edx, [esp + 0x58]
push edx
push ebx
mov ecx, ebp
call fcn.0046d810
mov edi, dword [esp + 0x1c]
push 0
sub edi, ebp
push edi
push esi
push 3
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, ebp
call fcn.0046d810
mov ecx, dword [esp + 0x34]
push ecx
push edi
push esi
push 4
lea edx, [esp + 0x58]
push edx
push ebx
mov ecx, ebp
call fcn.0046d810
push esi
push edi
push ebp
push 5
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, ebp
call fcn.0046d810
push 0
push ebp
push ebp
push 6
lea ecx, [esp + 0x58]
push ecx
push ebx
mov ecx, ebp
call fcn.0046d810
mov eax, dword [esp + 0x1c]
push 0
sub eax, esi
push eax
push ebp
push 7
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x48], eax
push ebx
mov ecx, ebp
call fcn.0046d810
push 0
push esi
push ebp
push 8
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, ebp
call fcn.0046d810
mov edi, dword [esp + 0x28]
sub edi, ebp
push edi
push ebp
push ebp
push 9
lea ecx, [esp + 0x58]
push ecx
push ebx
mov ecx, ebp
call fcn.0046d810
mov edx, dword [esp + 0x34]
push edi
push edx
push ebp
push 0xa
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, ebp
call fcn.0046d810
push edi
push esi
push ebp
push 0xb
lea ecx, [esp + 0x58]
push ecx
push ebx
mov ecx, ebp
call fcn.0046d810
xor edi, edi
mov dword [esp + 0x1c], edi
lea esi, [ebx + 8]
push 0x94
call fcn.0051e4bd
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x80], 5
test eax, eax
je 0x46d6a2
mov ecx, dword [ebx + 4]
lea edx, [ebx + 0x1c]
push edx
push edi
push ecx
push eax
call fcn.0046ccf0
mov dword [esp + 0x28], eax
jmp 0x46d6aa
mov dword [esp + 0x28], 0
mov byte [esp + 0x80], 2
mov ecx, dword [esi + 0xc]
inc ecx
cmp ecx, dword [esi + 8]
jle 0x46d6d2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edi, [eax + ecx + 8]
and edi, 0xfffffff8
call fcn.004d4980
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
inc edi
cmp edi, 4
mov dword [ecx + eax*4], edx
mov dword [esp + 0x1c], edi
jl 0x46d670
lea ecx, [esp + 0x48]
call fcn.0048ff10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 0
call fcn.0041add0
mov eax, dword [ebx + 0x14]
cmp eax, 4
jl 0x46d7d3
lea edi, [eax - 1]
test edi, edi
jl 0x46d74e
jmp 0x46d720
mov eax, dword [ebx + 8]
mov esi, dword [eax + edi*4]
mov eax, dword [ebx + 4]
call fcn.00432bc0
movzx ecx, al
push ecx
call fcn.00432b40
mov edx, dword [ebx + 8]
mov ecx, dword [edx + edi*4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
push edx
call eax
sub edi, 1
jns 0x46d720
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ebp*2]
push eax
mov dword [esp + 0x38], eax
sub ecx, ebp
mov eax, esi
sub eax, ebp
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 8]
mov edi, dword [edx]
push ecx
push eax
mov eax, ebp
mov dword [esp + 0x3c], ecx
call fcn.00432e20
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
push eax
add ecx, esi
push ecx
mov eax, ebp
call fcn.00432e20
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 8]
mov edi, dword [edx + 8]
push ebp
push eax
mov eax, dword [esp + 0x30]
push esi
call fcn.00432e20
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x1c]
add edx, dword [eax + 0x14]
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + 0xc]
add eax, 0x10
mov eax, dword [esp + 0x28]
push ebp
push edx
push esi
call fcn.00432e20
cmp byte [esp + 0x1b], 0
mov dword [esp + 0x80], 0xffffffff
mov byte [ebx + 0x8c], 0
je 0x46d7f3
mov edi, ebx
call fcn.0046d8c0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret