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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov eax, dword [ebp + 0x268]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x80]
cmp dword [esi + 0x1e8], 1
push edi
mov edi, dword [eax]
mov eax, dword [0x52b40c]
setne cl
cmp dword [esi + 0x1054], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + edx*4 + 0x116e4]
mov edx, dword [esi + 0x1418]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x48], ecx
jg 0x46fd72
cmp dword [edi + 8], 0
je 0x46fd72
mov eax, dword [edi + 0x24]
mov ebx, dword [edi + 4]
imul ebx, eax
add ebx, dword [edi + 0x18]
mov dword [edi + 0x20], eax
mov dword [esp + 0x80], ebx
je 0x46fd72
jmp 0x46f6b7
mov ebx, dword [esp + 0x80]
mov eax, dword [ebx + 4]
xor edx, edx
cmp dword [ebx + 0x34], 1
setne dl
dec eax
mov dword [esp + 0x2c], edx
cmp eax, 1
ja 0x46fd3a
cmp dword [ebx + 0x28], 0
jg 0x46fd3a
cmp dword [ebx + 8], 2
mov eax, dword [ebx + 0x9c]
jne 0x46f6fc
mov ecx, eax
mov edx, eax
shr ecx, 1
and edx, 1
and ecx, 1
add edx, edx
or ecx, edx
and eax, 0xfffffffc
or eax, ecx
test dword [esi + 0xc], eax
je 0x46fd3a
mov ecx, dword [ebx + 0xa0]
mov eax, dword [esi + 0x1058]
and eax, ecx
and eax, dword [esi + 0x105c]
test al, 7
je 0x46fd3a
test eax, 0xfffffff8
je 0x46fd3a
cmp dword [ebx + 0x2c], 0
jg 0x46fd3a
fld dword [esi + 0x210]
fadd dword [esi + 0x1f8]
fsub dword [ebx + 0x48]
call fcn.00499690
fld dword [esi + 0x20c]
fadd dword [esi + 0x1f4]
push eax
fsub dword [ebx + 0x44]
call fcn.00499690
mov ecx, dword [ebx + 0x298]
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push edx
call fcn.0040b360
add esp, 0x10
test eax, eax
je 0x46fd3a
mov edx, dword [ebx + 0x10c]
mov ecx, esi
call fcn.00470030
test eax, eax
je 0x46fd3a
cmp dword [ebx + 0x1c], 0
jle 0x46fd3a
mov edx, dword [ebx + 0x108]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
call fcn.00470030
test eax, eax
je 0x46f830
cmp dword [esi + 0xe68], edi
je 0x46f830
cmp byte [ebp + 0x257], 0
jne 0x46f830
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xd0]
push eax
push ecx
call fcn.0046e760
mov edx, dword [esi + 0x1b8]
sub edx, dword [esi + 0x1084]
add esp, 8
sub edx, eax
test edx, edx
jle 0x46f802
mov dword [esp + 0x20], 1
jmp 0x46f871
mov ecx, dword [0x52b40c]
mov eax, 3
mov dword [esp + 0x14], 1
cmp dword [ecx + 0x11710], eax
je 0x46f871
cmp dword [esp + 0x50], 0xa
jge 0x46f871
mov edx, dword [ebp + 0xc]
xor ecx, ecx
call fcn.0044edf0
jmp 0x46f871
mov edx, dword [ebx + 0xb8]
mov eax, dword [ebx + 0xcc]
push edx
push eax
call fcn.0046e760
mov ecx, dword [esi + 0x1b8]
sub ecx, dword [esi + 0x1084]
add esp, 8
sub ecx, eax
test ecx, ecx
jg 0x46f871
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], 1
call fcn.0044ed40
mov edx, dword [0x52b40c]
cmp dword [edx + 0x10ee8], edi
je 0x46f883
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
xor edx, edx
lea ecx, [esi + 0x1100]
nop
mov dword [esp + 0x24], ecx
cmp dword [ecx], edi
je 0x46f8b8
mov eax, dword [ecx + 4]
and eax, dword [ebx + 0xa0]
lea edi, [ebx + 0x94]
test al, 7
je 0x46f8b6
test eax, 0xfffffff8
jne 0x46fa94
xor edi, edi
inc edx
add ecx, 0x14
cmp edx, 8
jl 0x46f890
mov eax, dword [ebx + 0x140]
mov dword [esp + 0x24], edi
lea edi, [ebx + 0x94]
mov dword [esi + 0x218], eax
mov edx, dword [ebp + 0x26c]
mov ebx, esi
call fcn.004650e0
xor ecx, ecx
mov dword [esp + 0x1c], eax
cmp eax, ecx
jne 0x46f958
mov edx, dword [esp + 0x84]
mov esi, dword [ebp + 0x26c]
xor eax, eax
push ecx
push ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x64]
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call fcn.004030f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x46fd2f
mov edx, dword [ebp + 0x26c]
mov ecx, dword [edx + 4]
imul ecx, eax
add ecx, dword [edx + 0x18]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
cmp byte [ebp + 0x255], cl
jne 0x46f975
mov edx, dword [eax + 4]
sub edx, dword [edi + 0x34]
js 0x46fd2f
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x80]
fild dword [edi + 0x100]
mov eax, dword [ebx + 0x34]
push ecx
mov ecx, ebp
fstp dword [esp]
mov dword [esp + 0x2c], eax
call fcn.00465250
fimul dword [esp + 0x2c]
add esp, 4
mov ecx, ebx
fstp qword [esp + 0x34]
call fcn.00473320
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fadd qword [esp + 0x34]
fstp qword [esp + 0x3c]
call fcn.00456e70
fadd qword [esp + 0x3c]
call fcn.00499690
fild dword [edi + 0x104]
push ecx
mov ecx, ebp
fstp dword [esp]
mov dword [esp + 0x40], eax
call fcn.00465250
fstp qword [esp + 0x58]
add esp, 4
mov eax, ebx
call fcn.00473380
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fadd qword [esp + 0x54]
fstp qword [esp + 0x54]
call fcn.00456ea0
fadd qword [esp + 0x54]
call fcn.00499690
cmp dword [esp + 0x20], 0
mov dword [esp + 0x34], eax
jne 0x46fc77
mov ecx, dword [esp + 0x14]
fld dword [ebx + 0x48]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
sub esp, 8
fstp dword [esp + 4]
mov edx, esi
fld dword [ebx + 0x44]
mov ebx, ebp
fstp dword [esp]
push edi
call fcn.0046db20
mov eax, dword [ebp + 0x1c8]
mov ecx, dword [eax]
add ecx, dword [edi + 0x40]
add esp, 0x14
push ecx
mov eax, ebp
call fcn.0046b070
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x46faab
cmp byte [ebp + 0x255], 0
jne 0x46faab
mov esi, dword [esp + 0x84]
cmp dword [esi + 0x10c8], 0
je 0x46fab2
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x46fab2
mov ecx, dword [esp + 0x1c]
sub dword [ecx + 4], eax
mov dword [edi + 0x34], 0
jmp 0x46fab2
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
jmp 0x46f983
mov esi, dword [esp + 0x84]
mov edx, dword [edi + 0x58]
add dword [ebp + 0x13f4], edx
mov eax, dword [edi + 0x58]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0044c970
mov ebx, dword [esp + 0x84]
mov ecx, dword [ebx]
mov dword [ebp + 0x25c], ecx
xor ecx, ecx
add esp, 4
mov dword [ebp + 0x260], 2
mov dword [ebp + 0x264], ecx
mov dword [esi + 0x105c], 0x1ff
mov dword [esi + 0x1064], ecx
cmp dword [esp + 0x18], ecx
jne 0x46fb38
mov eax, dword [edi + 0x1a4]
cmp eax, ecx
jg 0x46fb10
cmp eax, 0xffffffff
jne 0x46fb38
mov ebx, dword [esp + 0x80]
lea esi, [edi + 0x1a0]
mov edi, dword [esp + 0x84]
add edi, 0x1438
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x84]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x188]
mov ecx, dword [esp + 0x34]
push 0
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [ebx + 0x184]
push edx
push ebp
call fcn.00470260
add esp, 0x18
cmp dword [esp + 0x18], 0
jne 0x46fc5e
mov eax, dword [ebx + 0x118]
cmp eax, 0xffffffff
je 0x46fb8a
mov edi, ebp
call fcn.0046af10
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
cmp dword [ebx + 0x120], 0
lea eax, [ebx + 0x94]
je 0x46fbbc
mov esi, dword [esp + 0x84]
lea edi, [eax + 0x90]
call fcn.0048bb50
mov ebx, dword [esp + 0x80]
mov dword [esi + 0xe5c], 2
cmp dword [ebx + 0x11c], 0xffffffff
je 0x46fc14
push 0
push esi
call fcn.00470140
mov eax, dword [esi + 4]
mov ecx, dword [0x52b40c]
mov edi, dword [ecx + 0xfcb0]
push eax
call fcn.00446320
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
add eax, 0x94
mov eax, dword [eax + 0x88]
add esp, 0xc
call fcn.0046af10
mov ebx, dword [esp + 0x80]
mov dword [edi + 0xe64], 0
mov edx, dword [ebx + 0x138]
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x14], edx
fild dword [ebx + 0x1ac]
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00465250
add esp, 4
call fcn.00499690
mov dword [esi + 0xc], eax
fild dword [ebx + 0x1b0]
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00465250
add esp, 4
call fcn.00499690
mov dword [esi + 0x10], eax
jmp 0x46fcf3
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x46fcf3
mov edi, esi
call fcn.0046af10
jmp 0x46fcec
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x88]
push ebp
call fcn.0046e7c0
mov edx, dword [ebp + 0x1c8]
mov eax, dword [edx]
mov edi, dword [esp + 0x88]
add eax, dword [edi + 0xd8]
push eax
mov eax, ebp
call fcn.0046b070
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + 0x190]
mov eax, dword [esp + 0x40]
add esp, 0xc
push 1
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
mov ecx, dword [edi + 0x18c]
push ebp
call fcn.00470260
mov edx, dword [edi]
add esp, 0x18
mov dword [ebp + 0x25c], edx
mov dword [ebp + 0x260], 1
mov dword [ebp + 0x264], 0
mov ebx, dword [esp + 0x80]
mov eax, dword [ebx + 0x1c]
dec eax
mov dword [ebx + 0x2c8], 1
test eax, eax
jg 0x46fd1a
xor eax, eax
cmp dword [ebx + 0x38], eax
je 0x46fd1a
mov dword [ebx + 0x2cc], eax
mov dword [ebx + 0x2d0], eax
jmp 0x46fd2f
mov ecx, dword [ebx + 0xe8]
mov edx, dword [ebx + 0x30]
mov dword [ebx + 0x2cc], ecx
mov dword [ebx + 0x2d0], edx
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + 0x20]
cmp ecx, dword [edi + 0x28]
jge 0x46fd72
mov eax, ecx
shl eax, 4
add eax, dword [edi + 0x1c]
lea ebx, [ebx]
add eax, 0x10
inc ecx
cmp dword [eax], 0
je 0x46fd50
mov eax, dword [edi + 4]
imul eax, ecx
add eax, dword [edi + 0x18]
mov dword [edi + 0x20], ecx
mov dword [esp + 0x80], eax
jne 0x46f6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret