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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, dword [edi + 0x74]
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 0xc], 0
test eax, eax
je 0x59a57d
lea esp, [esp]
cmp dword [eax], 5
jne 0x59a576
inc ecx
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x59a570
test ecx, ecx
jg 0x59a58d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0xc]
mov ebx, dword [ebp + 8]
mov word [ebp - 4], ax
jmp 0x59a5a6
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
dec ecx
mov dword [ebp - 0x1c], ecx
call fcn.004099a0
test eax, eax
jne 0x59a821
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.005c32a0
add esp, 4
mov edi, eax
push ebx
mov edx, edi
mov ecx, esi
call fcn.0059aba0
mov esi, eax
add esp, 4
test esi, esi
je 0x59a581
mov eax, dword [edi + 0x74]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x59a613
cmp dword [eax], 5
jne 0x59a5ec
inc ecx
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x59a5e6
mov dword [ebp - 0xc], ecx
test ecx, ecx
jle 0x59a613
mov ecx, dword [ebp - 8]
push esi
mov edx, edi
mov byte [esi + 0xa1], 1
mov byte [esi + 0x50], 7
call fcn.0059a530
add esp, 4
cmp dword [esi + 0x3c], 0xffffffff
je 0x59a620
mov ecx, esi
call fcn.0059a880
mov eax, dword [esi + 0x84]
test eax, eax
je 0x59a76a
test byte [esi + 0x9b], 0x60
je 0x59a63e
or byte [eax + 0x9b], 0x60
test byte [esi + 0x9b], 4
je 0x59a654
mov eax, dword [esi + 0x84]
or byte [eax + 0x9b], 4
test byte [esi + 0x9b], 8
je 0x59a66a
mov eax, dword [esi + 0x84]
or byte [eax + 0x9b], 8
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x59a6aa
mov edi, dword [esi + 0x84]
cmp dword [edi + 0x10], 0
jne 0x59a6aa
mov edx, dword [0x6521bc]
xor eax, eax
test edx, edx
jle 0x59a6a2
lea esp, [esp]
cmp dword [eax*8 + 0x6521c0], ecx
je 0x59a82a
inc eax
cmp eax, edx
jl 0x59a690
call fcn.00409a30
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x59a6ea
mov edi, dword [esi + 0x84]
cmp dword [edi + 0x14], 0
jne 0x59a6ea
mov edx, dword [0x6521bc]
xor eax, eax
test edx, edx
jle 0x59a6e2
lea esp, [esp]
cmp dword [eax*8 + 0x6521c0], ecx
je 0x59a832
inc eax
cmp eax, edx
jl 0x59a6d0
call fcn.00409a30
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x59a72a
mov edi, dword [esi + 0x84]
cmp dword [edi + 0x18], 0
jne 0x59a72a
mov edx, dword [0x6521bc]
xor eax, eax
test edx, edx
jle 0x59a722
lea esp, [esp]
cmp dword [eax*8 + 0x6521c0], ecx
je 0x59a83a
inc eax
cmp eax, edx
jl 0x59a710
call fcn.00409a30
mov dword [edi + 0x18], eax
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x59a76a
mov edi, dword [esi + 0x84]
cmp dword [edi + 0x1c], 0
jne 0x59a76a
mov edx, dword [0x6521bc]
xor eax, eax
test edx, edx
jle 0x59a762
lea esp, [esp]
cmp dword [eax*8 + 0x6521c0], ecx
je 0x59a842
inc eax
cmp eax, edx
jl 0x59a750
call fcn.00409a30
mov dword [edi + 0x1c], eax
mov al, byte [esi + 0x8d]
mov dh, byte [ebp - 2]
cmp al, dh
jbe 0x59a780
cmp al, 0xff
je 0x59a780
mov dh, al
mov byte [ebp - 2], dh
mov al, byte [esi + 0x91]
mov dl, byte [ebp - 1]
cmp al, 0xff
je 0x59a796
cmp al, dl
jbe 0x59a796
mov dl, al
mov byte [ebp - 1], dl
mov al, byte [esi + 0x8f]
mov si, word [ebp - 4]
cmp al, 0xff
je 0x59a7b7
movzx ecx, al
dec ecx
mov eax, 1
shl ax, cl
or si, ax
mov word [ebp - 4], si
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add dword [0x65102c], eax
add edi, eax
mov dword [ebp - 0x10], edi
test ecx, ecx
jne 0x59a5a0
test ebx, ebx
je 0x59a821
cmp byte [ebx + 0x8e], dh
jae 0x59a7e5
mov byte [ebx + 0x8e], dh
mov al, byte [ebx + 0x91]
cmp al, dl
jb 0x59a7f3
cmp al, 0xff
jne 0x59a805
mov eax, 0xff
test dl, dl
je 0x59a7ff
movzx eax, dl
mov byte [ebx + 0x91], al
test edi, edi
jne 0x59a810
mov byte [ebx + 0xa2], 1
or word [ebx + 0x98], si
mov ebx, dword [ebx + 0x84]
test ebx, ebx
jne 0x59a810
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ecx
jmp 0x59a6aa
mov dword [edi + 0x14], ecx
jmp 0x59a6ea
mov dword [edi + 0x18], ecx
jmp 0x59a72a
mov dword [edi + 0x1c], ecx
jmp 0x59a76a