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

Disassembly:
sub esp, 0x274
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
call fcn.0047b070
test eax, eax
jne 0x460c24
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4616b8
lea ebp, [eax + 0x2c]
mov eax, dword [ebp]
mov ecx, dword [eax + 0xb4]
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 0x810]
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x78], eax
call dword [0x53d2c8]
fild dword [esp + 0x294]
mov ecx, dword [esi + 4]
fst dword [esp + 0x20]
fmul dword [esi + 0x50]
fmul dword [0x53e6e8]
fstp dword [esp + 0x14]
call fcn.0047ea70
mov ecx, dword [eax + 8]
cmp ecx, 7
jne 0x460c94
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x5c]
mov edx, dword [ecx + 0xb4]
push edx
call fcn.0045f830
mov eax, dword [eax + 0x40]
add esp, 4
cmp eax, 0x3e7
je 0x460c9a
jmp 0x460c96
mov eax, ecx
test eax, eax
je 0x460cc2
fld dword [esi + 0x54]
fcom dword [0x54108c]
fnstsw ax
test ah, 5
jp 0x460cbf
fcom dword [0x541088]
fnstsw ax
test ah, 0x41
jne 0x460cbf
fstp st(0)
fld dword [0x53d7c0]
fstp dword [esi + 0x54]
mov eax, dword [esi + 8]
test eax, eax
je 0x460d18
mov eax, dword [eax + 0x38]
mov ecx, dword [eax]
cmp ecx, dword [esi + 4]
je 0x460d18
mov edx, dword [esi + 0x54]
mov dword [eax + 0x38], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 0x4c]
mov dword [ecx + 0x3c], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 0x50]
mov dword [ecx + 0x40], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 4]
mov dword [ecx], edx
mov ecx, esi
call fcn.00460210
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x38]
mov byte [edx + 0x55], al
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov dl, byte [esi + 0x30]
mov byte [ecx + 0x54], dl
push ebx
mov ebx, dword [esp + 0x284]
mov eax, dword [ebx + 0x28]
test eax, eax
push edi
jne 0x460de4
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], 2
mov dword [esp + 0x108], 0
mov dword [esp + 0x118], 0xffffffff
mov dword [esp + 0x11c], 0x7fffffff
mov dword [esp + 0x110], 0x20000000
mov al, byte [eax + 2]
movzx edi, al
push edi
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x104]
mov dword [esp + 0x108], 3
call fcn.00485570
lea ecx, [esp + 0x184]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + edi + 0x188], 0
call fcn.00435980
mov eax, dword [ebp]
mov ecx, dword [esi + 0x1c]
push ebx
lea edx, [esp + 0x74]
push edx
push eax
call fcn.0045f5c0
test eax, eax
mov dword [ebx + 0x28], eax
jne 0x460dd7
mov eax, dword [esp + 0x70]
push eax
call fcn.00439d00
add esp, 4
jmp 0x4616ab
mov edx, dword [esp + 0x70]
push edx
call fcn.00439d00
add esp, 4
mov eax, dword [esp + 0x298]
movzx ecx, byte [eax]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 1]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul dword [0x541084]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul dword [0x541080]
faddp st(1)
fild dword [esp + 0x10]
fmul dword [0x54107c]
faddp st(1)
fcomp dword [0x541078]
fnstsw ax
test ah, 0x41
jne 0x460e38
mov edi, 1
jmp 0x460e3a
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
mov dword [esp + 0x94], 0x41800000
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3f000000
mov dword [esp + 0xa0], 0xbf0f5c29
mov dword [esp + 0xa4], 0x3f800000
call fcn.0045fe70
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x460ed5
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x460ed5
cmp edi, 1
jne 0x460ed5
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0045fe70
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x460ed5
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x460ed5
lea eax, [esp + 0x80]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
test ecx, ecx
mov dword [esp + 0x54], 0x41800000
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f000000
mov dword [esp + 0x60], 0xbf0f5c29
mov dword [esp + 0x64], 0x3f800000
je 0x460f1f
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 4]
push eax
lea edx, [esp + 0x5c]
push edx
push ebp
call fcn.0047ea70
mov ecx, eax
call fcn.0045f240
mov eax, dword [esp + 0x2a0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esi + 0x34]
mov dword [esp + 0x58], edx
call fcn.004378f0
fld dword [esi + 0x54]
fmul qword [0x541070]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fistp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cdq
mov ecx, 0x5a
idiv ecx
test edx, edx
jne 0x46100b
mov ecx, esi
call fcn.00460210
fld dword [esp + 0x20]
cmp eax, 1
jne 0x460fa2
fmul dword [0x54106c]
fadd dword [0x53d7cc]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x10]
fild dword [esp + 0x10]
fmul dword [0x541068]
jmp 0x460fc4
fmul dword [0x53d7cc]
fadd dword [0x541064]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x10]
fild dword [esp + 0x10]
fmul dword [0x541060]
mov ecx, esi
fstp dword [esp + 0x20]
call fcn.00460210
test eax, eax
jne 0x460ff5
fld dword [esp + 0x24]
fmul dword [0x53d7cc]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x10]
fild dword [esp + 0x10]
fmul dword [0x541060]
jmp 0x46100f
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x1c]
fistp dword [esp + 0x10]
fild dword [esp + 0x10]
jmp 0x46100f
fld dword [esp + 0x24]
mov eax, dword [esp + 0x20]
fchs
fst dword [esp + 0x24]
mov dword [esp + 0xc4], eax
fstp dword [esp + 0xc8]
fld dword [esp + 0x28]
fmul dword [0x54105c]
fst dword [esp + 0x4c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x28]
mov ecx, dword [esi + 0x4c]
fild dword [esp + 0x28]
mov edx, dword [esi + 0x50]
mov eax, dword [esp + 0x20]
fmul dword [0x541060]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xd8], edx
mov edx, dword [esi + 0x54]
fstp dword [esp + 0xcc]
mov dword [esp + 0xdc], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0xd0], 0x48
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
call fcn.0047ea70
mov ecx, dword [eax + 8]
cmp ecx, 7
jne 0x4610d4
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x5c]
mov ecx, dword [eax + 0xb4]
push ecx
call fcn.0045f830
mov eax, dword [eax + 0x40]
add esp, 4
cmp eax, 0x3e7
jne 0x4610d6
mov eax, 1
jmp 0x4610d6
mov eax, ecx
fld dword [esp + 0xcc]
mov edx, dword [esp + 0x5c]
fmul dword [esi + 0x50]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x60]
fcomp dword [0x540fc0]
mov dword [esp + 0xf4], eax
movzx eax, word [esp + 0x290]
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0x28c]
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
fnstsw ax
test ah, 1
mov ebx, dword [edx + 0x1b8]
jne 0x46113d
mov ebx, 7
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x70], ebx
mov edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x60]
test eax, eax
lea edi, [esi + 0x58]
mov dword [esp + 0x74], edx
jle 0x461167
mov dword [edi + 0x14], 0
mov byte [edi + 0xc], 0
mov eax, dword [esi + 0x1c]
fld dword [eax + 0x50]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 8]
jge 0x46119d
fmul dword [0x540250]
mov byte [edi + 0xc], 0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x28]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + edx*4], ecx
inc dword [edi + 0x14]
jmp 0x46119f
fstp st(0)
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x4611b4
mov edx, dword [edi + 4]
mov byte [edi + 0xc], 0
mov dword [edx + eax*4], ebx
inc dword [edi + 0x14]
mov eax, dword [esi + 0x1c]
fld dword [eax + 0x4c]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 8]
jge 0x4611ea
fmul dword [0x540250]
mov byte [edi + 0xc], 0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x28]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + edx*4], ecx
inc dword [edi + 0x14]
jmp 0x4611ec
fstp st(0)
mov al, byte [edi + 0xc]
test al, al
je 0x4611f8
mov eax, dword [edi + 0x10]
jmp 0x461213
mov ecx, dword [edi + 0x14]
test ecx, ecx
jle 0x461211
mov edx, dword [edi + 4]
lea eax, [edi + 0x10]
shl ecx, 2
call fcn.0045e870
mov eax, dword [eax]
jmp 0x461213
xor eax, eax
mov ebp, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x461228
mov ecx, ebp
call fcn.0045ec70
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x34]
push edx
push ebp
push eax
call fcn.00505b70
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
jne 0x46157c
mov eax, dword [edi + 8]
xor ebp, ebp
cmp ebx, 7
mov ebx, dword [esp + 0x34]
jne 0x461349
cmp eax, ebp
jle 0x461274
mov dword [edi + 0x14], ebp
mov byte [edi + 0xc], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, edi
call fcn.0045f0b0
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1b8]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x4612a3
mov edx, dword [edi + 4]
mov byte [edi + 0xc], 0
mov dword [edx + eax*4], ecx
inc dword [edi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x4c]
push ecx
mov ecx, edi
call fcn.0045f0b0
mov al, byte [edi + 0xc]
test al, al
je 0x4612bd
mov edi, dword [edi + 0x10]
jmp 0x4612d8
mov ecx, dword [edi + 0x14]
cmp ecx, ebp
jle 0x4612d6
mov edx, dword [edi + 4]
lea eax, [edi + 0x10]
shl ecx, 2
call fcn.0045e870
mov edi, dword [eax]
jmp 0x4612d8
xor edi, edi
mov dword [esp + 0x34], edi
mov edi, dword [esi + 0x1c]
cmp dword [edi + 8], ebp
jne 0x4612eb
mov ecx, edi
call fcn.0045ec70
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0x1c]
push 1
lea eax, [esp + 0x34]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00505b70
mov ecx, dword [esp + 0x24]
add esp, 0x14
cmp ecx, 1
jne 0x4613ef
mov edi, dword [esi + 0x1c]
cmp dword [edi + 8], ebp
jne 0x461326
mov ecx, edi
call fcn.0045ec70
mov edx, dword [edi + 8]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call fcn.00505e20
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4613ef
cmp eax, ebp
jle 0x461354
mov dword [edi + 0x14], ebp
mov byte [edi + 0xc], 0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x50]
push eax
mov ecx, edi
call fcn.0045f0b0
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x46137b
mov ecx, dword [edi + 4]
mov byte [edi + 0xc], 0
mov dword [ecx + eax*4], 7
inc dword [edi + 0x14]
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, edi
call fcn.0045f0b0
mov al, byte [edi + 0xc]
test al, al
je 0x461395
mov edi, dword [edi + 0x10]
jmp 0x4613b0
mov ecx, dword [edi + 0x14]
cmp ecx, ebp
jle 0x4613ae
mov edx, dword [edi + 4]
lea eax, [edi + 0x10]
shl ecx, 2
call fcn.0045e870
mov edi, dword [eax]
jmp 0x4613b0
xor edi, edi
mov dword [esp + 0x34], edi
mov edi, dword [esi + 0x1c]
cmp dword [edi + 8], ebp
jne 0x4613c3
mov ecx, edi
call fcn.0045ec70
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 4]
mov edi, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
lea ecx, [esp + 0x34]
push ecx
push edi
push eax
call fcn.00505b70
mov ecx, dword [esp + 0x24]
add esp, 0x14
cmp ecx, 1
jne 0x4613ef
mov dword [esp + 0x28], eax
cmp ecx, ebp
mov dword [esp + 0x34], ebx
jne 0x46153a
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x288]
mov cx, word [esp + 0x290]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x104], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xb4]
mov word [esp + 0x108], cx
mov ebx, 0x540fd4
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x100], ebx
mov dword [esp + 0x110], 0
mov byte [esp + 0x114], 0
call fcn.0045f910
test al, al
je 0x461522
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb4]
mov edi, dword [esp + 0x10c]
mov ecx, dword [esp + 0x288]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00460940
lea edx, [esp + 0x120]
push edx
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x158]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0xd4]
push eax
push edi
push edx
call fcn.00506f20
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x8c]
push ecx
push edi
push eax
call int.00504630
mov edi, dword [esi + 0x1c]
mov ebp, eax
mov eax, dword [edi + 8]
add esp, 0x28
test eax, eax
jne 0x4614e1
mov ecx, edi
call fcn.0045ec70
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 8]
push ebp
lea edx, [esp + 0x30]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00505c90
mov eax, dword [0x563c04]
add esp, 0x14
inc eax
lea ecx, [esp + 0xfc]
mov dword [0x563c04], eax
mov dword [esp + 0xfc], ebx
call fcn.0045eff0
jmp 0x4615bc
lea ecx, [esp + 0xfc]
mov dword [esp + 0xfc], ebx
call fcn.0045eff0
jmp 0x4616ab
lea edx, [esp + 0x120]
push edx
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x158]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0xd4]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00506560
mov eax, dword [0x563c08]
add esp, 0x1c
inc eax
mov dword [0x563c08], eax
jmp 0x4615be
lea ecx, [esp + 0x120]
push ecx
lea edx, [esi + 0x70]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x158]
push ecx
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0xd4]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00506560
mov eax, dword [0x563c08]
add esp, 0x1c
inc eax
mov dword [0x563c08], eax
xor ebp, ebp
mov al, byte [esp + 0x2a4]
test al, al
jne 0x4616ab
mov eax, dword [esp + 0x46]
mov ecx, dword [esp + 0x40]
add ecx, eax
neg ecx
mov word [esp + 0xa0], cx
mov edx, dword [esp + 0xa0]
add edx, eax
mov eax, dword [esp + 0x298]
xor ecx, ecx
mov ch, byte [eax + 3]
mov word [esp + 0xa2], dx
movzx edx, byte [eax + 1]
mov cl, byte [eax]
movzx eax, byte [eax + 2]
shl ecx, 8
or ecx, edx
mov dx, word [esp + 0x290]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x28c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x288]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x20]
mov word [esp + 0xb0], dx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0x4c], eax
fld dword [esp + 0x4c]
fistp dword [esp + 0x1c]
mov esi, dword [esi + 8]
cmp esi, ebp
mov cx, word [esp + 0x1c]
mov word [esp + 0xc0], cx
mov dword [esp + 0xa8], ebp
mov word [esp + 0x9c], bp
mov word [esp + 0x9e], bp
je 0x4616ab
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.00457e00
mov ecx, dword [esp + 0x7c]
push ecx
call dword [0x53d2c4]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x274
ret 0x20