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

Disassembly:
sub esp, 0x860
push ebx
mov ecx, dword [esp + 0x870]
push ebp
mov ebp, dword [esp + 0x890]
mov edx, dword [esp + 0x86c]
push esi
mov eax, dword [ebp + 0x44]
push edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x880]
sub eax, ecx
mov ecx, 0x63
mov dword [esp + 0x38], eax
xor eax, eax
lea edi, [esp + 0x40]
mov ebx, dword [esp + 0x878]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x6c]
mov dword [esp + 0x110], ecx
mov ecx, eax
shr ecx, 2
and ecx, 1
xor esi, esi
mov dword [esp + 0x118], ecx
mov ecx, dword [ebx + 0x10]
and ecx, 0x2000
mov dword [esp + 0x20], esi
mov dword [esp + 0x120], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0xd4], esi
mov esi, ecx
mov dword [esp + 0x198], ecx
imul esi, ecx
lea ecx, [esp + 0x6af]
mov dword [esp + 0x1c8], esi
not eax
and ecx, 0xffffffc0
and eax, 1
mov dword [esp + 0x194], ecx
mov ecx, dword [esp + 0x890]
mov dword [esp + 0x19c], eax
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1ac], eax
mov eax, dword [ecx + 4]
mov ecx, 0x63
lea esi, [esp + 0x40]
lea edi, [esp + 0x1cc]
mov dword [esp + 0x104], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], 0x100000
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x63
lea esi, [esp + 0x40]
lea edi, [esp + 0x358]
mov dword [ebx + 0x20], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x63
lea esi, [esp + 0x40]
lea edi, [esp + 0x4e4]
mov dword [esp + 0x2a0], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x5b8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov dword [esp + 0x5e8], eax
mov dword [esp + 0x42c], eax
mov eax, dword [edx + 0x14]
xor ebp, ebp
test eax, eax
jbe 0x458a83
mov ecx, dword [0x471ac4]
mov esi, dword [0x471ac0]
mov eax, dword [edx + 0x10]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
jbe 0x458a77
imul eax, ebp
add eax, edi
mov esi, dword [ebx + 0x44]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*4]
shl eax, 2
add esi, eax
add eax, edx
mov dword [esp + 0x1c], eax
push eax
lea eax, [ebx + 0x38]
mov edx, dword [esp + 0x8a8]
push eax
mov eax, dword [esp + 0x8b0]
mov dword [esi + 0xec], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x8ac]
push eax
mov eax, dword [esp + 0x8ac]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x8a4]
push edx
push eax
mov edx, dword [ecx]
mov eax, dword [esp + 0x8a8]
push edx
mov edx, dword [esp + 0x8a8]
mov ecx, dword [eax]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x8a8]
push eax
push ecx
push ebp
lea edx, [esp + 0x510]
push edi
lea eax, [esp + 0x388]
push edx
lea ecx, [esp + 0x200]
push eax
lea edx, [esp + 0x78]
push ecx
push edx
call fcn.00458ab0
mov eax, dword [esp + 0x8d8]
add esp, 0x40
cmp dword [eax + 0x14], 3
je 0x45868b
mov ecx, dword [esp + 0x1c]
mov eax, 0x10
cmp dword [ecx + 0xec], eax
jne 0x45868b
mov dword [esi + 0xec], eax
mov edx, dword [0x471ac0]
mov dword [esi + 0x160], edx
mov eax, dword [0x471ac4]
mov dword [esi + 0x164], eax
mov ecx, dword [0x471ac0]
mov dword [esi], ecx
mov edx, dword [0x471ac4]
mov dword [esi + 4], edx
mov dword [esi + 0x154], 0
jmp 0x458a51
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x878]
push ecx
mov ecx, dword [esp + 0x888]
push edx
mov edx, dword [esp + 0x44]
push esi
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00459490
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xec]
add esp, 0x28
cmp eax, 4
jne 0x4586d6
mov ecx, dword [esp + 0x10]
jmp 0x4588ed
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push edx
lea ecx, [esp + 0x1d0]
push eax
push ecx
mov ecx, dword [esp + 0x880]
lea edx, [esp + 0x1c]
push 3
lea eax, [esp + 0x38]
push edx
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x10]
push esi
push ecx
push edx
push eax
push ebp
push edi
call fcn.00458d10
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push ecx
lea eax, [esp + 0x38c]
push edx
push eax
mov eax, dword [esp + 0x8b0]
lea ecx, [esp + 0x4c]
push 2
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [ebx + 0x24]
push edx
mov edx, dword [ebx + 0x10]
push esi
push eax
push ecx
push edx
push ebp
push edi
call fcn.00458d10
mov eax, dword [ebx + 0x10]
add esp, 0x60
test eax, 0x10000000
je 0x45875b
mov ecx, dword [esp + 0x10]
jmp 0x458765
mov edx, dword [esp + 0x10]
mov ecx, edx
sar ecx, 1
add ecx, edx
mov dword [esp + 0x18], ecx
mov edx, ecx
cmp dword [esp + 0x1dc], edx
jg 0x458794
lea ecx, [esp + 0x1cc]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x878]
push edx
push ecx
push eax
push ebp
push edi
call fcn.00459060
add esp, 0x18
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x368]
cmp eax, edx
jg 0x4587c6
mov edx, dword [esp + 0x874]
lea eax, [esp + 0x358]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00459060
add esp, 0x18
mov ecx, dword [esp + 0x380]
mov edx, dword [esp + 0x37c]
mov eax, dword [esp + 0x1f4]
push ecx
mov ecx, dword [esp + 0x1f4]
push edx
push eax
lea edx, [esp + 0x4f0]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x88c]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
push ebp
push edi
call fcn.0045a0b0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x524]
mov edx, eax
add esp, 0x30
sar edx, 3
add edx, eax
cmp ecx, edx
jge 0x458832
test dword [ebx + 0x10], 0x8000000
je 0x458836
cmp ecx, eax
jg 0x45885d
mov edx, dword [esp + 0x874]
lea eax, [esp + 0x4e4]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.0045a5b0
mov eax, dword [esp + 0x28]
add esp, 0x18
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax]
cmp edx, ecx
jg 0x45889d
mov ecx, dword [ebx + 0x10]
test ecx, 0x4000000
jne 0x45887a
cmp eax, 0x2ee
jg 0x458881
cmp eax, 0x3e8
jle 0x45889d
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push eax
push edx
push ecx
call fcn.00459d30
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x198]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x14]
shl edx, 3
cmp ecx, edx
jae 0x458906
lea eax, [eax + eax*4]
inc ecx
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div ecx
cmp eax, 0x32
jbe 0x458902
lea eax, [esp + 0x40]
mov dword [esp + 0xd0], 0
push eax
push esi
call fcn.00459220
mov eax, dword [esi + 0xec]
add esp, 8
cmp eax, 4
jne 0x458902
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x154], ecx
mov dword [esi + 0x15c], 0
jmp 0x458a51
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
test ch, 0x20
je 0x458954
mov edx, dword [esp + 0x874]
push eax
mov eax, dword [ebx + 0x10]
push ebp
push edi
push edx
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push ecx
push edx
push eax
lea ecx, [esp + 0x504]
push esi
lea edx, [esp + 0x1f0]
push ecx
lea eax, [esp + 0x380]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0045e400
add esp, 0x34
jmp 0x458989
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x4f0]
push esi
lea eax, [esp + 0x1dc]
push edx
lea ecx, [esp + 0x36c]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.0045a8b0
add esp, 0x20
mov eax, dword [esi + 0xec]
cmp eax, 3
mov dword [esp + 0x18], eax
je 0x45899d
cmp eax, 1
jne 0x4589f3
mov eax, dword [esp + 0x118]
lea ecx, [esi + 0x124]
test eax, eax
jne 0x4589b0
mov ecx, esi
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
cmp edx, eax
mov dword [esp + 0x14], ecx
jle 0x4589c2
mov eax, edx
jmp 0x4589d1
or ecx, 0xffffffff
sub ecx, edx
mov edx, dword [esp + 0x20]
cmp ecx, edx
jle 0x4589d1
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
cmp edx, eax
jle 0x4589e0
mov eax, edx
jmp 0x4589eb
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x4589eb
mov eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x4589fd
cmp eax, 1
jne 0x458a51
mov eax, dword [esp + 0x118]
test eax, eax
je 0x458a10
add esi, 0x180
jmp 0x458a16
add esi, 0x160
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
cmp edx, eax
mov dword [esp + 0x14], esi
jle 0x458a28
mov eax, edx
jmp 0x458a33
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x458a33
mov eax, ecx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
cmp edx, eax
jle 0x458a42
mov eax, edx
jmp 0x458a4d
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x458a4d
mov eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x874]
inc edi
mov eax, dword [eax + 0x10]
cmp edi, eax
jb 0x45858e
mov ecx, dword [0x471ac4]
mov esi, dword [0x471ac0]
mov edx, dword [esp + 0x874]
mov eax, dword [edx + 0x14]
inc ebp
cmp ebp, eax
jb 0x458571
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00451860
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
push edx
call fcn.00451860
add esp, 8
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x860
ret