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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], edx
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
mov eax, dword [ebx]
mov ecx, eax
mov edi, dword [ebx + 8]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
call fcn.0045a7e0
mov ecx, dword [esp + 0x24]
movsx edx, word [esi + 0x22]
and dword [esp + 0x28], 0
push 2
mov dword [esp + 0x40], eax
pop eax
add edx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebx + 0x28]
push 0
push edx
push ecx
mov dword [esp + 0x24], eax
lea eax, [ecx + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
mov ecx, edi
push 0x76
pop edx
mov dword [ebx + 0x28], eax
call fcn.00420222
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
mov dword [esp + 0x34], eax
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
cmp dword [ecx], 1
jle 0x459757
xor eax, eax
test byte [esi + 0x1c], 0x80
mov dword [esp + 0x34], eax
jne 0x459685
mov edx, dword [ebp + 0x10]
push eax
test edx, edx
jne 0x4596ac
push eax
push 0x4b
pop edx
mov ecx, ebx
call fcn.00431594
pop ecx
jmp 0x4596b5
mov ecx, esi
call fcn.0043c2fb
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 4]
movsx edx, word [ecx]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
js 0x4596b8
mov eax, dword [ebp + 0xc]
imul edx, ecx, 0x14
push 0
mov edx, dword [edx + eax + 8]
mov ecx, dword [esp + 0x24]
call fcn.00431dda
pop ecx
jmp 0x4596bf
mov ecx, ebx
call fcn.00457e66
mov ecx, dword [ebx]
mov edx, eax
call fcn.004322d4
and dword [esp + 0x30], 0
mov esi, eax
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax + 0x22]
jge 0x459726
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + edi*4]
test eax, eax
js 0x459700
mov ecx, dword [esp + 0x20]
imul edx, eax, 0x14
mov eax, dword [ebp + 0xc]
push 0
mov edx, dword [edx + eax + 8]
call fcn.00431dda
pop ecx
jmp 0x459709
mov edx, edi
mov ecx, ebx
call fcn.00457e66
push eax
mov edx, esi
mov ecx, ebx
call fcn.00432381
mov esi, eax
inc edi
mov eax, dword [ebp + 8]
pop ecx
movsx eax, word [eax + 0x22]
cmp edi, eax
jl 0x4596de
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x30]
push ecx
push esi
push dword [esp + 0x48]
mov ecx, ebx
call fcn.00457e84
push esi
push dword [esp + 0x3c]
call fcn.004325ff
add esp, 0x20
and dword [esp + 0x30], 0
jmp 0x4598f3
xor esi, esi
inc eax
push esi
push 4
push esi
push esi
mov dword [esp + 0x3c], eax
mov edx, ecx
inc eax
mov ecx, ebx
push esi
push dword [ebp + 0x18]
mov dword [esp + 0x38], eax
mov dword [ebx + 0x2c], eax
call fcn.0046582f
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
je 0x4599df
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax + 0x22]
jge 0x4597e7
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, 2
add ecx, esi
mov eax, dword [eax + esi*4]
push ecx
test eax, eax
js 0x4597ba
imul edx, eax, 0x14
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + eax + 8]
call fcn.0043552b
pop ecx
jmp 0x4597d8
push esi
push dword [esp + 0x20]
mov edx, 0xaf
mov ecx, edi
call fcn.00420222
add esp, 0xc
xor edx, edx
inc edx
mov ecx, edi
call fcn.004207cf
mov eax, dword [ebp + 8]
inc esi
movsx eax, word [eax + 0x22]
cmp esi, eax
jl 0x459792
mov eax, dword [ebp + 8]
test byte [eax + 0x1c], 0x80
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
jne 0x45982a
push 0
push edx
push dword [esp + 0x20]
mov edx, 0x87
mov ecx, edi
call fcn.00420222
mov edx, dword [ebp + 0x10]
add esp, 0xc
test edx, edx
je 0x45981c
push esi
mov ecx, ebx
call fcn.0043552b
pop ecx
jmp 0x459869
push 0
push esi
push dword [esp + 0x20]
mov edx, 0x87
jmp 0x45985f
mov ecx, eax
call fcn.0043c2fb
push edx
mov edx, 0xaf
mov ecx, edi
mov eax, dword [eax + 4]
movsx esi, word [eax]
push esi
push dword [esp + 0x20]
call fcn.00420222
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
lea eax, [ecx + 1]
push eax
lea eax, [ecx + 2]
add eax, esi
push eax
push 0x51
pop edx
mov ecx, edi
call fcn.00420222
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, edi
movzx esi, byte [eax + 0x2e]
mov dword [esp + 0x30], esi
test esi, esi
je 0x459897
mov edx, dword [esp + 0x34]
call fcn.00420946
and dword [esp + 0x2c], 0
and dword [esp + 0x20], 0
mov eax, dword [esp + 0x18]
push 0x7a
pop edx
jmp 0x4598dc
push dword [esp + 0x2c]
cmp dword [ebx + 0x78], 0
mov eax, ebx
push dword [esp + 0x20]
cmovne eax, dword [ebx + 0x78]
push dword [esp + 0x18]
push 0x61
pop edx
mov byte [eax + 0x14], 1
call fcn.00420222
add esp, 0xc
mov ecx, edi
push 0
push dword [esp + 0x24]
push dword [esp + 0x1c]
push 0x7f
pop edx
call fcn.00420222
mov eax, dword [esp + 0x20]
add esp, 0xc
mov edx, 0x80
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x30]
push eax
call fcn.00420222
add esp, 0xc
test esi, esi
jne 0x45994f
mov eax, dword [esp + 0x24]
cmp dword [eax], 1
jne 0x459905
mov ecx, dword [esp + 0x28]
call fcn.00466291
push 0
push 0
push dword [esp + 0x1c]
mov ecx, edi
push 0x24
pop edx
call fcn.00420222
xor esi, esi
mov dword [esp + 0x40], eax
add esp, 0xc
cmp dword [esp + 0x1c], esi
jle 0x45994b
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, edi
add eax, esi
push eax
push esi
push ebx
push 0x5e
pop edx
call fcn.00420222
add esp, 0xc
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x45992a
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0045b597
push 0xfffffffffffffff5
push dword [esp + 0x40]
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x28]
push 0
push 7
pop edx
call fcn.0042034c
mov eax, dword [ebp + 0x1c]
add esp, 0x14
movzx edx, ax
cmp eax, 0xb
mov ecx, edi
push 2
pop eax
cmove edx, eax
call fcn.004207cf
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
test esi, esi
jne 0x4599d6
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x38]
lea eax, [esi + 1]
push eax
push ebx
push 0x27
pop edx
call fcn.00420222
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.00420a9d
mov esi, dword [edi + 0x6c]
push 0
push 0
push ebx
push 0x7a
pop edx
mov dword [eax + 8], esi
call fcn.00420222
add esp, 0xc
jmp 0x4599df
mov ecx, dword [esp + 0x28]
call fcn.00466291
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret