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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], edi
test esi, esi
jne 0x4598ff
cmp dword [ebx + 0x78], edx
jne 0x4598ee
test byte [eax + 0x44], 8
jne 0x4598ee
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00425fe0
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp dword [ebp + 0x1c], 0
jge 0x459967
mov eax, dword [esi + 0xc]
movzx edx, byte [ecx + 0x18]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x30], ecx
jg 0x459935
push 0
push 0
push edx
mov edx, 0x2f
mov ecx, esi
call fcn.00426240
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x459967
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x2f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x459a0f
mov eax, dword [esp + 0x38]
test eax, eax
je 0x459987
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x45998a
or eax, 0xffffffff
push eax
push dword [esp + 0x28]
mov edx, edi
mov ecx, ebx
call fcn.00459790
mov dword [esp + 0x20], eax
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4599b1
movzx ecx, word [eax + esi*4]
mov eax, dword [esp + 0x10]
jmp 0x4599b9
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0x24]
mov eax, dword [eax]
mov edx, 0x3b
movsx ecx, cx
add ecx, ecx
mov eax, dword [eax + 4]
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x10]
call fcn.0043c460
add esp, 4
mov edx, 0x35
mov ecx, ebx
push eax
push dword [esp + 0x1c]
call fcn.0043c550
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0043c630
mov ecx, eax
inc esi
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], ecx
cmp esi, dword [eax + 0x14]
jl 0x459976
jmp 0x459a11
xor ecx, ecx
mov esi, dword [esp + 0x10]
cmp edi, dword [esi]
jne 0x459c6f
cmp dword [ebp + 0x1c], 0
jle 0x459c6f
test byte [edi + 0x24], 0x20
jne 0x459ae9
mov ecx, dword [ebx]
push 0
push 0x31
call fcn.00405440
mov edi, eax
add esp, 8
or esi, 0xffffffff
test edi, edi
je 0x459a77
push 0x30
push 0
push edi
call fcn.004e8ed0
lea eax, [edi + 0x30]
mov byte [edi], 0x96
mov dword [edi + 8], eax
add esp, 0xc
mov word [edi + 0x22], si
mov byte [eax], 0
mov eax, dword [esp + 0x24]
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], eax
mov byte [edi + 1], 0x44
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
push 0
push 0x31
mov eax, dword [eax + 0x38]
mov dword [esp + 0x24], eax
call fcn.00405440
mov esi, eax
add esp, 8
test esi, esi
je 0x459ad1
push 0x30
push 0
push esi
call fcn.004e8ed0
lea eax, [esi + 0x30]
mov byte [esi], 0x91
add esp, 0xc
mov dword [esi + 8], eax
or ecx, 0xffffffff
mov word [esi + 0x22], cx
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], cx
push esi
push edi
mov edx, 0x34
mov ecx, ebx
call fcn.0043c550
add esp, 8
mov esi, eax
jmp 0x459c50
mov edi, dword [edi + 8]
mov dword [esp + 0x18], 0
test edi, edi
je 0x459b08
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x459b08
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x459af8
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x1c], ecx
cmp ax, word [edi + 0x32]
jae 0x459bdc
nop word [eax + eax]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx*2]
mov ecx, ebx
push eax
push dword [esp + 0x28]
mov dword [esp + 0x48], eax
call fcn.00459790
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
push 0
push 0x31
mov eax, dword [eax + 0x38]
mov dword [esp + 0x4c], eax
call fcn.00405440
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459ba1
push 0x30
push 0
push esi
call fcn.004e8ed0
add esp, 0xc
mov byte [esi], 0x91
or eax, 0xffffffff
mov word [esi + 0x22], ax
lea eax, [esi + 0x30]
mov dword [esi + 8], eax
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x18], 1
mov word [esi + 0x20], ax
push esi
push dword [esp + 0x38]
mov edx, 0x35
mov ecx, ebx
call fcn.0043c550
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0043c630
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x18], eax
inc ecx
movzx eax, word [edi + 0x32]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jl 0x459b20
mov ecx, dword [ebx]
push 0
push 0x30
call fcn.00405440
mov esi, eax
add esp, 8
test esi, esi
je 0x459c3f
push 0x30
push 0
push esi
call fcn.004e8ed0
or eax, 0xffffffff
mov byte [esi], 0x13
mov word [esi + 0x22], ax
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x459c1d
mov dword [esi + 0xc], eax
mov eax, dword [eax + 4]
and eax, 0x200100
or dword [esi + 4], eax
mov ecx, esi
call fcn.0043c260
mov eax, dword [ebx]
mov eax, dword [eax + 0x70]
cmp dword [esi + 0x18], eax
jle 0x459c50
push eax
push 0x539df8
push ebx
call fcn.004081e0
add esp, 0xc
jmp 0x459c50
mov eax, dword [esp + 0x18]
test eax, eax
je 0x459c50
mov ecx, dword [ebx]
mov edx, eax
call fcn.0043cb90
mov edi, dword [esp + 0xc]
mov ecx, edi
mov edx, dword [esp + 0x14]
push esi
call fcn.0043c630
mov esi, dword [esp + 0x14]
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
jmp 0x459c73
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
mov edx, ecx
movlpd qword [esp + 0x4c], xmm0
lea ecx, [esp + 0x44]
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
call fcn.0043b580
cmp dword [ebx + 0x24], 0
jne 0x459d39
mov edx, dword [esp + 0x20]
mov ecx, ebx
push 0
push 0
push 0
push 0
push dword [esp + 0x24]
call fcn.00488860
mov ebx, eax
add esp, 0x14
movzx eax, byte [esi + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
cmp dword [ecx + 0x30], edx
jg 0x459cf7
mov edx, dword [ebp + 0x1c]
mov ecx, esi
push 0
push edx
push eax
mov edx, 0x91
call fcn.00426240
add esp, 0xc
jmp 0x459d2c
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x1c]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
je 0x459d3d
mov ecx, ebx
call fcn.004896d0
jmp 0x459d3d
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x459d4e
mov edx, eax
mov ecx, edi
call fcn.0043cb90
mov eax, dword [esp + 0x30]
test eax, eax
je 0x459d91
mov edx, dword [esi + 0x88]
lea ecx, [edx - 1]
cmovns ecx, eax
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x459d84
mov eax, 0x550080
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret