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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [0x52b40c]
push ebp
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 0x1e8]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, 1
setne cl
push esi
mov esi, dword [esp + 0x68]
cmp dword [esi + 0x1054], 0
push edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + edx*4 + 0x116e4]
lea edi, [ebp + 0x11b0]
mov dword [esp + 0x68], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
jg 0x46db09
cmp dword [edi + 0x30], 0
je 0x46d347
cmp dword [edi], 0
je 0x46db09
push esi
push ebp
call fcn.00470140
mov ebx, dword [0x52b40c]
add esp, 8
mov edx, dword [edi + 0x74]
xor eax, eax
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
call fcn.00470030
test eax, eax
je 0x46d3d5
cmp dword [esi + 0xe68], 0
je 0x46d3d5
cmp byte [ebp + 0x257], 0
jne 0x46d3d5
mov ecx, dword [ebp + 0x11d8]
mov edx, dword [ebp + 0x11ec]
push ecx
push edx
call fcn.0046e760
mov ecx, dword [esi + 0x1b8]
sub ecx, dword [esi + 0x1084]
add esp, 8
sub ecx, eax
test ecx, ecx
jle 0x46d3a3
mov dword [esp + 0x30], 1
jmp 0x46d41c
cmp dword [ebx + 0x11bac], 0
je 0x46d41c
cmp dword [ebx + 0x11710], 3
mov dword [esp + 0x18], 1
je 0x46d41c
cmp dword [esp + 0x38], 0xa
jge 0x46d41c
mov edx, dword [ebp + 0xc]
mov eax, 3
xor ecx, ecx
call fcn.0044edf0
jmp 0x46d41c
mov edx, dword [ebp + 0x11d4]
mov eax, dword [ebp + 0x11e8]
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 0x46d41c
cmp dword [esi + 0x1c], 1
je 0x46d41c
mov ecx, dword [ebp + 0x11bc]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], 1
call fcn.0044ed40
xor edx, edx
cmp dword [ebx + 0x10ee8], edx
je 0x46d42a
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
lea ecx, [esi + 0x1100]
cmp dword [ecx], 0
mov dword [esp + 0x34], ecx
je 0x46d452
mov eax, dword [ecx + 4]
and eax, dword [edi + 0xc]
test al, 7
je 0x46d452
test eax, 0xfffffff8
jne 0x46d532
inc edx
add ecx, 0x14
cmp edx, 8
jl 0x46d434
mov edx, dword [ebp + 0x26c]
mov ebx, esi
mov dword [esp + 0x34], 0
call fcn.004650e0
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x46d4d8
xor eax, eax
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x64]
mov edx, esi
mov esi, dword [ebp + 0x26c]
lea ecx, [esp + 0x4c]
push ebx
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.004030f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x46db09
mov edx, dword [ebp + 0x26c]
mov ecx, dword [edx + 4]
imul ecx, eax
add ecx, dword [edx + 0x18]
mov dword [esp + 0x20], ecx
mov eax, ecx
mov esi, dword [esp + 0x6c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov edx, dword [edi + 0x10]
mov ebx, dword [0x52b40c]
mov dword [eax + 8], edx
mov eax, dword [edi + 0xa8]
mov dword [ebp + 0x218], eax
mov ecx, dword [edi + 0xac]
mov dword [esi + 0x218], ecx
mov ecx, dword [esi + 0x1e8]
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x14]
je 0x46d5bc
cmp dword [esi + 0xe58], 3
jne 0x46d561
mov edx, dword [esi + 0x90]
mov dword [esp + 0x24], edx
jmp 0x46d56b
xor eax, eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
cmp dword [edi + 0x8c], eax
jne 0x46db09
cmp dword [edi + 0x84], 0xffffffff
je 0x46d4f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esi + 0x88]
mov dword [esp + 0x24], eax
fild dword [edi + 0x100]
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00465250
mov ecx, dword [esi]
fld dword [ecx + 0xa4]
push ecx
fimul dword [esp + 0x2c]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fadd qword [0x4a6ba0]
fstp qword [esp]
fstp qword [esp + 0x2c]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00499690
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fadd qword [esp + 0x24]
jmp 0x46d651
mov eax, ecx
neg eax
cmp dword [esi + 0xe58], 3
jne 0x46d5e1
cmp ecx, eax
jne 0x46d5d5
mov edx, dword [esi + 0x90]
jmp 0x46d5f7
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x24], eax
jmp 0x46d5fb
cmp ecx, eax
jne 0x46d5f1
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x24], ecx
jmp 0x46d5fb
mov edx, dword [esi + 0x84]
mov dword [esp + 0x24], edx
mov eax, dword [edi + 0x100]
neg eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00465250
mov ecx, dword [esi]
fld dword [ecx + 0xa4]
push ecx
fimul dword [esp + 0x2c]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fadd qword [0x4a6ba0]
fstp qword [esp]
fstp qword [esp + 0x2c]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00499690
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fsubr qword [esp + 0x24]
call fcn.00499690
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fsub dword [esi + 0x20c]
fimul dword [esp + 0x40]
fmul dword [esi + 0x13a8]
fadd dword [esi + 0x13b4]
fild dword [ebx + 0x10f10]
fmul dword [ebx + 0x1b74]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fadd dword [ebx + 0x10ef8]
fstp dword [esp + 0x40]
fadd dword [esp + 0x40]
call fcn.00499690
fild dword [edi + 0x104]
cmp dword [ebp + 0xc3c], 0
mov dword [esp + 0x24], eax
fstp dword [esp + 0x38]
je 0x46d6d2
mov eax, dword [ebp + 0xc38]
cmp eax, 0xffffffff
je 0x46d6d2
mov eax, dword [ebx + eax*4 + 0x11230]
test eax, eax
je 0x46d6d2
mov edx, dword [eax]
fld dword [edx + 0xa4]
jmp 0x46d6db
mov eax, dword [ebp]
fld dword [eax + 0xa4]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fsub dword [ebp + 0x210]
fmul dword [ebp + 0x13a8]
fadd dword [ebp + 0x13b8]
fild dword [ebx + 0x10f14]
fmul dword [ebx + 0x1b74]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fadd dword [ebx + 0x10efc]
fstp dword [esp + 0x40]
fadd dword [esp + 0x40]
call fcn.00499690
cmp dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
jne 0x46d9f3
cmp dword [esp + 0x1c], 0
jne 0x46d7c3
cmp dword [esi + 0x10c8], 0
jne 0x46d75b
test byte [edi + 0x78], 1
jne 0x46d75b
cmp dword [edi + 0x148], 0
je 0x46d76f
cmp dword [esi + 0xe58], 3
jne 0x46d76f
mov ecx, dword [ebp + 0x13a4]
mov eax, dword [esp + 0x20]
sub dword [eax + 4], ecx
mov dword [edi + 0x34], 0
cmp dword [edi + 0x108], 0
je 0x46d78c
mov eax, dword [ebp + 0x1e8]
neg eax
mov dword [ebp + 0x1ec], eax
mov dword [esp + 0x14], eax
jmp 0x46d790
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x46d7c3
cmp ecx, 1
jne 0x46d7a9
cmp eax, dword [esi + 0x1e8]
je 0x46d7c3
jmp 0x46d7b1
cmp eax, dword [esi + 0x1e8]
jne 0x46d7c3
mov eax, dword [ebp + 0x1e8]
neg eax
mov dword [esp + 0x14], eax
mov dword [ebp + 0x1ec], eax
mov edx, dword [esp + 0x18]
fld dword [ebp + 0x1f8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x70]
push eax
sub esp, 8
fstp dword [esp + 4]
mov ebx, ebp
fld dword [ebp + 0x1f4]
fstp dword [esp]
push edi
call fcn.0046db20
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x46d806
cmp dword [esp + 0x1c], eax
je 0x46d8ca
mov ecx, dword [edi + 0x54]
mov edx, dword [ebp + 0x1c8]
mov dword [ebp + 0xe74], ecx
mov eax, dword [edx]
add eax, dword [edi + 0x40]
push eax
mov eax, ebp
call fcn.0046b070
mov ecx, dword [edi + 0x58]
mov edx, dword [ebp + 0xe94]
mov eax, dword [0x52b40c]
add dword [ebp + 0x13f4], ecx
add esp, 4
cmp edx, dword [eax + 0x10ea8]
jge 0x46d84a
mov ecx, dword [edi + 0x58]
add dword [ebp + 0x13f8], ecx
mov edx, dword [edi + 0x58]
add dword [ebp + 0x13fc], edx
mov dword [ebp + 0xe8c], 2
mov dword [ebp + 0xe90], 0
mov eax, dword [edi + 0x58]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0044c970
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x46d8ca
mov eax, dword [edi + 0x1a4]
test eax, eax
jg 0x46d88c
cmp eax, 0xffffffff
jne 0x46d8a9
mov esi, edi
mov edi, dword [esp + 0x6c]
add esi, 0x1a0
add edi, 0x1438
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x68]
test dword [edi + 0xc], 0x1c0
je 0x46d8ca
mov ecx, dword [edi + 0x54]
mov edx, dword [esp + 0x6c]
inc ecx
mov dword [edx + 0x1054], ecx
mov eax, dword [edi + 0x54]
inc eax
mov dword [ebp + 0x1054], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + 0xf4]
mov eax, dword [esp + 0x38]
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, dword [edi + 0xf0]
push ebp
call fcn.00470260
add esp, 0x18
cmp dword [esp + 0x1c], 0
jne 0x46d9d1
mov eax, dword [edi + 0x84]
cmp eax, 0xffffffff
je 0x46d912
mov edi, ebp
call fcn.0046af10
mov edi, dword [esp + 0x68]
cmp dword [edi + 0x8c], 0
je 0x46d93c
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
add edi, 0x90
call fcn.0048bb50
mov edi, dword [esp + 0x68]
mov dword [esi + 0xe5c], 2
cmp dword [edi + 0x88], 0xffffffff
je 0x46d987
mov esi, dword [esp + 0x6c]
push 0
push esi
call fcn.00470140
mov edx, dword [esi + 4]
mov eax, dword [0x52b40c]
mov edi, dword [eax + 0xfcb0]
push edx
call fcn.00446320
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 0x88]
add esp, 0xc
mov edi, esi
call fcn.0046af10
mov edi, dword [esp + 0x68]
mov dword [esi + 0xe64], 0
mov edx, dword [edi + 0xa4]
mov esi, dword [esp + 0x20]
mov dword [esi + 0x14], edx
fild dword [edi + 0x118]
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00465250
add esp, 4
call fcn.00499690
mov dword [esi + 0xc], eax
fild dword [edi + 0x11c]
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.00465250
add esp, 4
call fcn.00499690
mov dword [esi + 0x10], eax
jmp 0x46da93
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x46da93
mov edi, dword [esp + 0x6c]
call fcn.0046af10
mov edi, dword [esp + 0x68]
jmp 0x46da93
mov ecx, dword [edi + 0x184]
mov edx, dword [esp + 0x14]
push edx
mov dword [ebp + 0xe74], ecx
mov ecx, dword [esp + 0x70]
push ebp
mov dword [ebp + 0xe8c], 1
mov dword [ebp + 0xe90], 0
call fcn.0046e7c0
mov ebx, eax
mov eax, dword [0x52b40c]
mov eax, dword [eax + 0x11710]
add esp, 8
cmp eax, 3
je 0x46da6c
cmp eax, 4
je 0x46da6c
mov eax, dword [ebp + 0x1c8]
mov ecx, dword [edi + 0x44]
add dword [eax], ecx
mov eax, dword [ebp + 0x1c8]
cmp dword [eax], 0
jge 0x46da58
mov dword [eax], 0
mov edx, dword [ebp + 0x1cc]
mov eax, dword [ebp + 0x1c8]
mov ecx, dword [edx]
cmp dword [eax], ecx
jle 0x46da6c
mov dword [eax], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0xfc]
mov edx, dword [esp + 0x38]
push 1
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0xf8]
push edx
push eax
push ebp
call fcn.00470260
add esp, 0x18
test ebx, ebx
je 0x46daec
mov ecx, dword [esp + 0x6c]
call fcn.00464c60
test eax, eax
je 0x46daec
fld dword [ecx + 0x11a4]
mov dword [ebp + 0x284], 0xffffffff
fimul dword [ebp + 0x1e8]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fldz
mov dword [ebp + 0x270], ecx
fstp dword [esp + 0x44]
fld dword [0x4a6e40]
mov edx, dword [esp + 0x44]
fstp dword [ebp + 0x278]
mov dword [ebp + 0x274], edx
fld1
fstp dword [ebp + 0x280]
mov eax, dword [0x52b40c]
mov ecx, dword [eax + 0x10ea8]
mov dword [ebp + 0xe94], ecx
cmp dword [edi + 0x30], 0
je 0x46db09
mov dword [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret