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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x180
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 8]
mov dword [esp + 0x24], eax
lea eax, [ebp + 0xc]
mov dword [esp + 0x28], eax
mov edi, dword [esi + 4]
mov dword [esp + 0x6c], 0x4853d0
mov dword [esp + 0x70], 0x580c40
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], esp
mov dword [esp + 0x78], 0x459e21
lea eax, [esp + 0x54]
push eax
call fcn.004863b0
add esp, 4
and edi, 0x4a
je 0x459839
cmp edi, 0x40
je 0x459843
cmp edi, 8
jne 0x45984d
mov dword [esp + 0x1c], 0x10
jmp 0x459855
mov dword [esp + 0x1c], 0
jmp 0x459855
mov dword [esp + 0x1c], 8
jmp 0x459855
mov dword [esp + 0x1c], 0xa
mov word [esp + 0x36], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0xc0], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x58], 0xffffffff
lea eax, [esp + 0x36]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x38]
push eax
push ecx
push esi
push edx
call fcn.0045ef90
add esp, 0x10
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x58], 1
lea ecx, [esp + 0x10]
push 0
push 0xa
call fcn.00480060
test byte [esp + 0x10], 1
lea eax, [esp + 0x11]
je 0x4598f9
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
lea eax, [esp + 0xd0]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
mov esi, dword [edx]
jmp 0x459990
add eax, 2
mov ecx, dword [esp]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp]
mov esi, dword [esp + 0xc]
test ecx, ecx
je 0x4599b0
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4599c0
movzx eax, word [eax]
jmp 0x4599e7
mov dl, 1
xor ecx, ecx
jmp 0x4599f6
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x58], 2
mov dword [esp + 8], esi
mov dword [esp + 0x20], ecx
call eax
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 8]
cmp ax, 0xffff
sete dl
mov eax, 0
cmove ecx, eax
mov edi, dword [esp + 4]
mov dword [esp], ecx
test esi, esi
je 0x459a60
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x459a20
movzx eax, word [eax]
cmp ax, 0xffff
je 0x459a60
test dl, dl
jne 0x459a6a
jmp 0x459be8
mov byte [esp + 0x20], dl
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x58], 3
mov ecx, esi
mov dword [esp + 8], esi
call eax
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
movzx edx, byte [esp + 0x20]
cmp ax, 0xffff
jne 0x459a12
nop word [eax + eax]
xor esi, esi
test dl, dl
jne 0x459be8
mov dword [esp + 0xc], esi
movzx ecx, byte [esp + 0x10]
test cl, 1
je 0x459a80
mov ecx, dword [esp + 0x14]
jmp 0x459a82
shr ecx, 1
lea eax, [edi + ecx]
cmp dword [esp + 0x4c], eax
jne 0x459aea
mov dword [esp + 4], ecx
lea eax, [ecx + ecx]
mov dword [esp + 0x58], 4
lea ecx, [esp + 0x10]
push 0
push eax
call fcn.00480060
mov eax, dword [esp + 0x10]
and eax, 0xfffffffe
add eax, 0xffffffff
test byte [esp + 0x10], 1
mov ecx, 0xa
cmove eax, ecx
mov dword [esp + 0x58], 5
lea ecx, [esp + 0x10]
push 0
push eax
call fcn.00480060
test byte [esp + 0x10], 1
lea edi, [esp + 0x11]
je 0x459ae0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 4]
add eax, edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 4], edi
je 0x459b10
movzx eax, word [eax]
jmp 0x459b38
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov edx, dword [esp]
mov ecx, dword [esp]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], 6
call eax
mov edi, dword [esp + 4]
movzx ecx, word [esp + 0x36]
mov edx, dword [esp]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], 7
movzx eax, ax
lea edx, [esp + 0x90]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0xd8]
push edx
lea edx, [esp + 0x44]
push edx
push ecx
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x64]
push ecx
push edi
push dword [esp + 0x3c]
push eax
call fcn.0045e220
add esp, 0x28
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x459be4
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp]
cmp eax, dword [ecx + 0x10]
jne 0x459980
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp]
mov dword [esp + 0x20], ecx
mov edx, dword [esp]
mov ecx, dword [esp]
mov esi, dword [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], 8
call eax
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 8]
jmp 0x459990
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp]
mov dword [ecx], edx
mov dword [eax], esi
movzx eax, byte [esp + 0x38]
test al, 1
je 0x459c06
mov eax, dword [esp + 0x3c]
jmp 0x459c08
shr eax, 1
mov dword [esp + 8], esi
test eax, eax
je 0x459c34
mov eax, dword [esp + 0x48]
mov ecx, eax
lea edx, [esp + 0xd0]
sub ecx, edx
cmp ecx, 0x9f
jg 0x459c34
mov ecx, dword [esp + 0x50]
lea edx, [eax + 4]
mov dword [esp + 0x48], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], 9
push dword [esp + 0x1c]
push dword [ebp + 0x14]
push eax
push edi
call fcn.0047a430
add esp, 0x10
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
movzx edx, byte [esp + 0x38]
mov edi, edx
shr edi, 1
and dl, 1
mov esi, dword [esp + 0x3c]
mov eax, esi
cmove eax, edi
test eax, eax
je 0x459d3d
mov ebx, edi
mov edi, dword [esp + 0x48]
lea ecx, [edi - 4]
lea eax, [esp + 0xd0]
cmp eax, edi
mov dword [esp + 4], ecx
je 0x459cc6
cmp ecx, eax
jbe 0x459cc6
lea ecx, [esp + 0xd4]
mov edx, dword [esp + 4]
nop
mov esi, dword [ecx - 4]
mov edi, dword [edx]
mov dword [ecx - 4], edi
mov dword [edx], esi
add edx, 0xfffffffc
lea esi, [ecx + 4]
cmp ecx, edx
mov ecx, esi
jb 0x459ca0
movzx ebx, byte [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edx, ebx
and dl, 1
shr ebx, 1
test dl, dl
mov ecx, dword [esp + 8]
je 0x459cdc
mov edx, dword [esp + 0x40]
mov ebx, esi
cmp dword [esp + 4], eax
ja 0x459ce6
jmp 0x459d1c
lea edx, [esp + 0x39]
cmp dword [esp + 4], eax
jbe 0x459d1c
mov edi, ebx
add edi, edx
jmp 0x459d09
mov eax, edi
sub eax, edx
xor ebx, ebx
cmp eax, 2
setge bl
add edx, ebx
mov eax, esi
add eax, 4
cmp eax, dword [esp + 4]
jae 0x459d1c
mov esi, eax
movzx ebx, byte [edx]
mov eax, ebx
add al, 0xff
cmp al, 0x7d
ja 0x459cf0
cmp dword [esi], ebx
je 0x459cf0
jmp 0x459d34
movzx edx, byte [edx]
mov eax, edx
add al, 0xff
cmp al, 0x7d
ja 0x459d3d
mov eax, dword [esp + 4]
mov eax, dword [eax]
add eax, 0xffffffff
cmp eax, edx
jb 0x459d3d
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
cmp dword [esp], 0
je 0x459d8a
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov edx, dword [esp]
cmp eax, dword [edx + 0x10]
je 0x459d56
movzx eax, word [eax]
jmp 0x459d6f
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp]
mov dword [esp + 0x58], 0xa
call eax
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [esp]
cmp ax, 0xffff
je 0x459d80
test ecx, ecx
jne 0x459d92
jmp 0x459dd8
mov eax, dword [esp + 0x24]
mov dword [eax], 0
xor esi, esi
mov dl, 1
test ecx, ecx
je 0x459dd8
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x459da9
movzx eax, word [eax]
cmp ax, 0xffff
je 0x459dce
test dl, dl
je 0x459ddc
jmp 0x459de2
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x58], 0xb
call eax
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
cmp ax, 0xffff
jne 0x459da3
mov eax, dword [esp + 0x28]
mov dword [eax], 0
test dl, dl
je 0x459de2
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x10], 1
je 0x459df5
push dword [esp + 0x18]
call fcn.00422980
add esp, 4
test byte [esp + 0x38], 1
je 0x459e08
push dword [esp + 0x40]
call fcn.00422980
add esp, 4
lea eax, [esp + 0x54]
push eax
call fcn.00486410
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14