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

Disassembly:
push 0xffffffffffffffff
push 0x5a2b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00402860
push eax
mov dword [esp + 0x50], 0
call fcn.0059a790
mov ebx, dword [esp + 0x1c]
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x4c], 0xffffffff
test ebx, ebx
je 0x59b1ae
push 0
lea ecx, [esp + 0x14]
call fcn.00599ae1
mov eax, dword [ebx + 4]
test eax, eax
je 0x59b18e
cmp eax, 0xffffffff
jae 0x59b18e
dec eax
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
neg edi
sbb edi, edi
lea ecx, [esp + 0x10]
not edi
call fcn.00599b09
and edi, ebx
je 0x59b1ae
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0059a470
mov ebx, dword [esp + 0x6c]
mov al, byte [ebx]
mov dword [esp + 0x4c], 1
cmp al, 0x2b
je 0x59b1f3
cmp al, 0x2d
je 0x59b1f3
cmp al, 0x30
jne 0x59b1e9
mov al, byte [ebx + 1]
cmp al, 0x78
je 0x59b1df
cmp al, 0x58
jne 0x59b1e9
mov dword [esp + 0x10], 2
jmp 0x59b1fb
mov dword [esp + 0x10], 0
jmp 0x59b1fb
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, edx
cmp ecx, 0x10
jae 0x59b20e
lea eax, [esp + 0x28]
cmp byte [eax], 0x7f
je 0x59b2a1
mov eax, edx
cmp ecx, 0x10
jae 0x59b222
lea eax, [esp + 0x28]
cmp byte [eax], 0
jle 0x59b2a1
cmp ecx, 0x10
jae 0x59b230
lea edx, [esp + 0x28]
mov ebp, dword [esp + 0x70]
mov eax, edx
mov al, byte [eax]
mov dword [esp + 0x6c], edx
mov esi, ebp
cmp al, 0x7f
je 0x59b286
test al, al
jle 0x59b286
mov ecx, esi
sub ecx, dword [esp + 0x10]
movsx eax, al
cmp eax, ecx
jae 0x59b286
sub esi, eax
mov eax, ebp
sub eax, esi
inc eax
push eax
lea edi, [esi + ebx]
push edi
push eax
lea eax, [esi + ebx + 1]
push eax
call fcn.0057af99
mov eax, dword [esp + 0x7c]
add esp, 0x10
mov byte [edi], 0
inc ebp
cmp byte [eax + 1], 0
jle 0x59b280
inc eax
mov dword [esp + 0x6c], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x59b242
mov esi, dword [esp + 0x64]
cmp dword [esi + 0x24], 0
mov edi, dword [esi + 0x20]
jl 0x59b2a7
jg 0x59b299
test edi, edi
je 0x59b2a7
cmp edi, ebp
jbe 0x59b2a7
sub edi, ebp
jmp 0x59b2a9
mov ebp, dword [esp + 0x70]
jmp 0x59b28a
xor edi, edi
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x54]
and eax, 0x1c0
cmp eax, 0x40
je 0x59b34a
mov edx, dword [esp + 0x60]
cmp eax, 0x100
mov eax, dword [esp + 0x5c]
je 0x59b2f2
mov ecx, dword [esp + 0x68]
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0059a1f0
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov eax, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x60], eax
jmp 0x59b348
mov ecx, dword [esp + 0x10]
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.0059a180
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x28]
push edi
push edx
mov edx, dword [eax]
add ebx, ecx
sub ebp, ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0059a1f0
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
add esp, 0x30
mov dword [esp + 0x60], edx
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x6c]
push eax
push ebp
push ebx
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0059a260
mov ecx, dword [eax]
mov edx, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x88]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0x94], eax
call fcn.0059a1f0
add esp, 0x34
cmp dword [esp + 0x3c], 0x10
jb 0x59b3c1
mov eax, dword [esp + 0x28]
push eax
call fcn.0057af7f
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret