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

Disassembly:
push 0xffffffffffffffff
push 0x85093c
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8943b8]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x3c0]
xor edi, edi
push edi
lea esi, [ebp + 0x18]
push eax
mov ecx, esi
call fcn.00405810
test al, al
je 0x45ae76
mov ecx, esi
mov dword [ebp], 0x78
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
call fcn.00405ac0
mov esi, eax
cmp esi, edi
je 0x45ae6b
lea ebx, [ebx]
mov eax, dword [esi + 4]
cmp eax, 0x12
ja case.default.0x45a6e3
movzx ecx, byte [eax + 0x45aebc]
jmp dword [ecx*4 + 0x45ae94]
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x10]
xor edx, edx
imul eax, eax, 0xea60
div dword [ebp]
add dword [ebp + 0x14], eax
mov edx, dword [esi + 8]
mov dword [ebp + 0x10], edx
mov eax, dword [esi + 0xc]
mov dword [ebp], eax
jmp case.default.0x45a6e3
push 0xffffffffffffffff
push edi
add esi, 8
push esi
lea ecx, [ebp + 0x70]
call fcn.004020d0
jmp case.default.0x45a6e3
cmp dword [esi + 0x20], edi
je case.default.0x45a6e3
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x50]
lea ebx, [ebp + 0x4c]
push ecx
mov ecx, ebx
call fcn.0043f2f0
mov eax, dword [esp + 0x4c]
test eax, eax
mov edi, dword [ebx + 4]
je 0x45a74e
cmp eax, ebx
je 0x45a753
call fcn.0081ff70
cmp dword [esp + 0x50], edi
jne 0x45a7bc
lea ecx, [esp + 0xe8]
call fcn.00457040
lea edi, [ebp + 0x58]
push eax
mov ecx, edi
mov dword [esp + 0x3bc], 0
call fcn.0045a620
lea ecx, [esp + 0xe8]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.0041ed60
mov ecx, edi
call fcn.00444020
mov edx, dword [esi + 8]
mov edi, eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
call fcn.00457be0
jmp 0x45a7c8
lea ecx, [esp + 0x4c]
call fcn.004565e0
mov edi, dword [eax + 4]
mov eax, dword [esi + 0x28]
mov ecx, 3
cmp eax, ecx
ja case.default.0x45a7d4
jmp dword [eax*4 + 0x45aed0]
mov eax, 1
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
jmp case.default.0x45a7d4
mov dword [edi + 0x70], 1
jmp 0x45a800
mov dword [edi + 0x6c], 1
mov dword [edi + 0x70], ecx
jmp case.default.0x45a7d4
mov dword [edi + 0x70], ecx
mov dword [edi + 0x6c], ecx
cmp dword [esi + 0x24], 0x10
jb 0x45a80e
mov eax, dword [esi + 0x10]
jmp 0x45a811
lea eax, [esi + 0x10]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x98]
push edx
mov ecx, 0x89ff08
call fcn.00405030
push eax
mov ecx, edi
call fcn.00417510
mov dword [esp + 0x1e4], 0
mov dword [esp + method.CSpriteEx.virtual_0], vtable.CSpriteEx.0
lea eax, [esp + 0x1e0]
lea ebx, [edi + 0x14]
push eax
mov ecx, ebx
mov dword [esp + 0x3bc], 1
call fcn.00458120
mov eax, dword [esi + 0x2c]
cmp eax, 4
mov dword [esp + 0x3b8], 0xffffffff
ja case.default.0x45a880
jmp dword [eax*4 + 0x45aee0]
mov ecx, edi
call fcn.00436550
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edx
push 0
push 0
push eax
mov ecx, ebx
call fcn.00456ce0
mov ecx, eax
call fcn.0041f7f0
mov edx, dword [esi + 0x30]
mov dword [edi + 0x68], edx
jmp case.default.0x45a6e3
mov ecx, edi
call fcn.00436550
mov ecx, dword [esp + 0x24]
mov edx, ecx
shr edx, 1
push edx
mov edx, dword [esp + 0x24]
shr edx, 1
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push 0
push edx
jmp 0x45a932
mov ecx, edi
call fcn.00436550
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push ecx
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push 0
push edx
jmp 0x45a932
mov ecx, edi
call fcn.00436550
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
push 0
push ecx
push edx
push ecx
push 0
push 0
push eax
jmp 0x45a932
mov ecx, edi
call fcn.00436550
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ecx
mov ecx, dword [eax]
push edx
push 0
push 0
push ecx
mov ecx, ebx
call fcn.00456ce0
mov ecx, eax
call fcn.00406c60
mov edx, dword [esi + 0x30]
mov dword [edi + 0x68], edx
jmp case.default.0x45a6e3
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x48]
lea ebx, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.0043f2f0
mov edi, dword [esp + 0x44]
test edi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x80], ecx
je 0x45a974
cmp edi, ebx
je 0x45a979
call fcn.0081ff70
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x80]
jne 0x45a9ed
lea ecx, [esp + 0x164]
call fcn.00457040
lea edi, [ebp + 0x58]
push eax
mov ecx, edi
mov dword [esp + 0x3bc], 2
call fcn.0045a620
lea ecx, [esp + 0x164]
mov dword [esp + 0x3b8], 0xffffffff
call fcn.0041ed60
mov ecx, edi
call fcn.00444020
mov edi, eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0xb0]
push edx
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edi
call fcn.00457be0
jmp 0x45aa11
test edi, edi
jne 0x45a9f6
call fcn.0081ff70
mov eax, dword [esp + 0x48]
cmp eax, dword [edi + 4]
jne 0x45aa04
call fcn.0081ff70
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x14], edx
mov edi, edx
mov eax, dword [esi + 0x14]
mov ecx, 3
cmp eax, ecx
ja case.default.0x45aa1d
jmp dword [eax*4 + 0x45aef4]
mov eax, 1
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
jmp case.default.0x45aa1d
mov dword [edi + 0x70], 1
jmp 0x45aa49
mov dword [edi + 0x6c], 1
mov dword [edi + 0x70], ecx
jmp case.default.0x45aa1d
mov dword [edi + 0x70], ecx
mov dword [edi + 0x6c], ecx
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x2cc], 0
mov dword [esp + method.CSpriteEx.virtual_0], vtable.CSpriteEx.0
mov dword [esp + 0x3b8], ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c8]
add ecx, 0x14
push eax
call fcn.00458120
mov eax, dword [esi + 0x18]
cmp eax, 4
mov dword [esp + 0x3b8], 0xffffffff
ja case.default.0x45aa96
jmp dword [eax*4 + 0x45af04]
push ebx
push edi
push 0
push 0
push ecx
mov ecx, dword [esp + 0x28]
mov eax, esp
add ecx, 0x14
mov dword [esp + 0x2c], esp
mov dword [eax], 0
call fcn.00456ce0
mov ecx, eax
call fcn.0041f7f0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x68], eax
jmp case.default.0x45a6e3
mov ecx, ebx
shr ecx, 1
mov edx, edi
push ecx
shr edx, 1
push edx
jmp 0x45aae9
push ebx
push 0
jmp 0x45aae9
push 0
jmp 0x45aae8
push ebx
push edi
push ebx
push edi
push 0
push 0
push ecx
mov ecx, dword [esp + 0x30]
mov eax, esp
add ecx, 0x14
mov dword [esp + 0x34], esp
mov dword [eax], 0
call fcn.00456ce0
mov ecx, eax
call fcn.00406c60
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x68], eax
jmp case.default.0x45a6e3
mov edx, dword [ebp + 0x50]
lea ebx, [ebp + 0x4c]
lea edi, [esi + 8]
push edi
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
mov dword [esp + 0x90], edx
call fcn.0043f2f0
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x45ab4c
cmp ecx, ebx
je 0x45ab55
call fcn.0081ff70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x88]
cmp dword [eax + 4], ecx
je case.default.0x45a6e3
mov ecx, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test ecx, ecx
mov edx, dword [esi + 4]
mov eax, dword [edi]
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], eax
jge 0x45ab82
fadd dword [0x871554]
mov edx, dword [ebp + 0x14]
fstp dword [esp + 0x14]
test edx, edx
fild dword [ebp]
fstp dword [esp + 0x28]
fild dword [ebp + 0x14]
jge 0x45ab9d
fadd dword [0x871554]
fstp dword [esp + 0x18]
mov edx, dword [esi + 0x18]
fld dword [esi + 0xc]
mov dword [esp + 0x3c], edx
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fld qword [0x859e10]
fnstcw word [esp + 0x14]
fmul st(2), st(0)
movzx eax, word [esp + 0x14]
fld dword [esp + 0x28]
or eax, 0xc00
fld st(0)
fdivp st(4)
fld dword [esp + 0x18]
fld st(0)
faddp st(5)
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fxch st(4)
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
fldcw word [esp + 0x14]
fld dword [esi + 0x10]
fadd dword [esi + 0xc]
fnstcw word [esp + 0x14]
fsubrp st(3)
fxch st(2)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
fmulp st(1)
push eax
fdivrp st(1)
faddp st(1)
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xa4]
fldcw word [esp + 0x18]
push ecx
lea ecx, [ebp + 0x64]
fld dword [esi + 0x14]
fstp dword [esp + 0x40]
call fcn.00457f30
jmp case.default.0x45a6e3
mov edx, dword [ebp + 0x50]
lea ebx, [ebp + 0x4c]
lea edi, [esi + 8]
push edi
lea eax, [esp + 0x9c]
push eax
mov ecx, ebx
mov dword [esp + 0x78], edx
call fcn.0043f2f0
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x45ac75
cmp ecx, ebx
je 0x45ac7e
call fcn.0081ff70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
cmp dword [eax + 4], ecx
je case.default.0x45a6e3
mov ecx, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test ecx, ecx
mov edx, dword [esi + 4]
mov eax, dword [edi]
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], eax
jge 0x45aca8
fadd dword [0x871554]
mov edx, dword [ebp + 0x14]
fstp dword [esp + 0x14]
test edx, edx
fild dword [ebp]
fstp dword [esp + 0x28]
fild dword [ebp + 0x14]
jge 0x45acc3
fadd dword [0x871554]
fstp dword [esp + 0x18]
mov edx, dword [esi + 0x14]
fld dword [esi + 0xc]
mov dword [esp + 0x38], edx
fld dword [esp + 0x14]
lea edx, [esp + 0xdc]
fld st(0)
fsubp st(2)
fld qword [0x859e10]
fnstcw word [esp + 0x14]
fmul st(2), st(0)
movzx eax, word [esp + 0x14]
fld dword [esp + 0x28]
or eax, 0xc00
fld st(0)
fdivp st(4)
fld dword [esp + 0x18]
fld st(0)
faddp st(5)
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fxch st(4)
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
fldcw word [esp + 0x14]
fld dword [esi + 0x10]
fadd dword [esi + 0xc]
fnstcw word [esp + 0x14]
fsubrp st(3)
fxch st(2)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
fmulp st(1)
mov dword [esp + 0x3c], eax
fdivrp st(1)
faddp st(1)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
fldcw word [esp + 0x14]
push ecx
push edx
lea ecx, [ebp + 0x64]
call fcn.00457f30
jmp case.default.0x45a6e3
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x60]
lea ebx, [ebp + 0x4c]
push ecx
mov ecx, ebx
call fcn.0043f2f0
mov edi, dword [esp + 0x5c]
test edi, edi
mov edx, dword [ebx + 4]
mov dword [esp + 0x78], edx
je 0x45ad96
cmp edi, ebx
je 0x45ad9b
call fcn.0081ff70
mov ebx, dword [esp + 0x60]
cmp ebx, dword [esp + 0x78]
je case.default.0x45a6e3
test edi, edi
jne 0x45adb2
call fcn.0081ff70
cmp ebx, dword [edi + 4]
jne 0x45adbc
call fcn.0081ff70
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x78], ecx
jmp case.default.0x45a6e3
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x10]
xor edx, edx
imul eax, eax, 0xea60
div dword [ebp]
lea edx, [esp + 0x2c]
push edx
lea ecx, [ebp + 0x64]
mov dword [esp + 0x44], 0x11
add eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0xd4]
push eax
call fcn.00457f30
jmp case.default.0x45a6e3
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x10]
xor edx, edx
imul eax, eax, 0xea60
div dword [ebp]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xc8]
push edx
lea ecx, [ebp + 0x64]
mov dword [esp + 0x48], 4
add eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00457f30
jmp case.default.0x45a6e3
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x10]
xor edx, edx
imul eax, eax, 0xea60
div dword [ebp]
add eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 0x18]
call fcn.00405ac0
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x45a6d0
mov dword [ebp + 4], edi
mov dword [ebp + 0x8c], edi
mov al, 1
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a8
ret 4