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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov edi, edx
mov eax, dword [0x7c3824]
xor eax, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x30], ecx
cmp byte [ecx], 0
je 0x59fc8e
mov dword [esp + 0x2c], edi
xor ebx, ebx
mov dword [esp + 0x28], 0xffffffff
lea esi, [esp + 0x50]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
nop
lea ecx, [esp + 0x4c]
call fcn.0059fe80
mov edi, dword [esp + 0x4c]
movzx eax, byte [edi]
push eax
call fcn.005a0330
add esp, 4
test eax, eax
je 0x59f920
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
push esi
push str._31_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
push edi
call fcn.004b2e3b
add esp, 0xc
test eax, eax
je 0x59fa60
push esi
call fcn.005fef10
add esp, 4
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
jne 0x59fa80
jmp 0x59fa69
movzx eax, byte [edi]
push eax
call fcn.005a0290
add esp, 4
test eax, eax
je 0x59fc74
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x40], 0xffffffff
je 0x59fad6
call fcn.005f3508
mov esi, dword [eax]
call fcn.005f3508
mov dword [eax], 0
push 0xa
lea eax, [esp + 0x54]
push eax
push edi
call fcn.005f9b0c
add esp, 0xc
mov dword [esp + 0x24], eax
call fcn.005f3508
mov eax, dword [eax]
mov dword [esp + 0xc], eax
call fcn.005f3508
mov dword [esp + 0x34], esi
cmp dword [eax], esi
je 0x59f990
call fcn.005f3508
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
cmp dword [esp + 0xc], 0
jne 0x59fd63
push dword [esp + 0x24]
call fcn.005286d0
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x24], edx
je 0x59fb0e
xor eax, eax
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
mov dword [esp + 0x38], ebx
jne 0x59fb94
mov ecx, dword [esp + 0x14]
and ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
jne 0x59fb94
mov ecx, edx
sub ecx, edi
cmp ecx, 8
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jne 0x59fb9c
mov eax, edi
mov ecx, 0x68db8bad
mov dword [esp + 0x10], edx
imul ecx
mov eax, edx
shr eax, 0x1f
sar edx, 0xc
add edx, eax
mov dword [esp + 0x1c], edx
imul eax, edx, 0x2710
mov ecx, edi
sub ecx, eax
movsx eax, cx
imul ecx, eax, 0x147b
mov esi, ecx
shr esi, 0x1f
sar ecx, 0x13
mov eax, edi
mov edx, 0x51eb851f
imul edx
lea eax, [ecx + esi]
add eax, 0xffffffff
cwde
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 0x1f
sar edx, 5
add edx, eax
imul eax, edx, 0x64
mov edx, dword [esp + 0x10]
mov esi, edi
sub esi, eax
mov al, 1
jmp 0x59fb9c
xor esi, esi
cmp dword [esp + 0x28], 0xffffffff
jne 0x59fa80
lea ecx, [esp + 0x50]
mov edx, esi
call fcn.0059fec0
cmp eax, 0xffffffff
je 0x59fa80
mov dword [esp + 0x28], eax
jmp 0x59facb
cmp dword [esp + 0x14], 0xffffffff
je 0x59fa92
xor eax, eax
cmp dword [esp + 0x18], 0xffffffff
je 0x59faac
jmp 0x59fac3
lea ecx, [esp + 0x50]
call fcn.0059ffe0
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
setne al
cmp dword [esp + 0x18], 0xffffffff
jne 0x59fac3
test al, al
jne 0x59fac3
lea ecx, [esp + 0x50]
call fcn.005a0130
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
setne al
test al, al
je 0x59fd63
add edi, esi
mov dword [esp + 0x4c], edi
jmp 0x59fc70
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push str._02d:_02d:_02d_n
push edi
call fcn.004b2e3b
add esp, 0x18
cmp eax, 3
jne 0x59fc0c
add edi, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
jmp 0x59fc70
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
cmp edi, dword [esp + 0x30]
jbe 0x59f9c0
cmp dword [esp + 0xc], 0x578
mov esi, dword [esp + 0x20]
jg 0x59f9c4
mov ecx, edx
sub ecx, edi
cmp ecx, 4
jne 0x59f9c4
movzx ecx, byte [edi - 1]
cmp cl, 0x2d
je 0x59fb53
cmp cl, 0x2b
jne 0x59fc87
mov esi, dword [esp + 0xc]
mov eax, esi
mov edx, 0x51eb851f
imul edx
mov eax, edx
shr eax, 0x1f
sar edx, 5
add edx, eax
imul eax, edx, 0x64
sub esi, eax
imul eax, edx, 0x3c
add esi, eax
imul eax, esi, 0x3c
mov esi, dword [esp + 0x20]
mov edx, eax
neg edx
cmp cl, 0x2b
cmovne edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
mov al, 1
jmp 0x59f9c4
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], edx
test al, al
sete ch
test edx, edx
sete cl
cmp esi, 0xffffffff
sete al
and al, cl
and al, ch
mov ebx, esi
lea edx, [edi - 1]
cmp edx, 0x1f
setb cl
mov esi, 0xffffffff
cmovb esi, edi
mov edx, 1
test al, al
jne 0x59fbd6
mov edx, dword [esp + 0x10]
mov esi, ebx
and cl, al
xor cl, ch
cmp dword [esp + 0x1c], 0xffffffff
mov ebx, dword [esp + 0x38]
jne 0x59fc03
cmp edx, 1
jne 0x59fc03
test cl, cl
je 0x59fc03
mov eax, dword [esp + 0xc]
cmp eax, 0x63
jg 0x59fc54
cmp eax, 0x47
jl 0x59fc4f
add eax, 0x76c
jmp 0x59fc54
test cl, cl
je 0x59fc60
jmp 0x59fd63
cmp dword [esp + 0x40], 0xffffffff
jne 0x59f947
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
push 0x660b03
push edi
call fcn.004b2e3b
add esp, 0x14
cmp eax, 2
jne 0x59f947
add edi, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], 0
jmp 0x59fc70
add eax, 0x7d0
xor edx, edx
cmp esi, 0xffffffff
setne dl
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], esi
lea esi, [esp + 0x50]
cmp ebx, 4
ja 0x59fcaa
add ebx, 1
cmp byte [edi], 0
jne 0x59f8c0
jmp 0x59fcaa
xor eax, eax
jmp 0x59f9c4
mov dword [esp + 0x14], 0xffffffff
mov esi, 0xffffffff
mov edx, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
jmp 0x59fcbf
mov ecx, dword [esp + 0x40]
cmp ecx, 0xffffffff
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
jne 0x59fcd1
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
xor ecx, ecx
cmp dword [esp + 0x1c], 0x62f
jl 0x59fd63
cmp esi, 0xffffffff
je 0x59fd63
cmp dword [esp + 0x14], 0xffffffff
je 0x59fd63
cmp esi, 0x1f
jg 0x59fd63
cmp dword [esp + 0x14], 0xb
jg 0x59fd63
mov ebx, 0xffffffff
mov eax, dword [esp + 0x48]
cmp eax, 0x17
jg 0x59fd68
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x44]
cmp edx, 0x3b
jg 0x59fd68
cmp ecx, 0x3c
jg 0x59fd68
push dword [esp + 0x1c]
push dword [esp + 0x18]
push esi
push eax
call fcn.005a0170
add esp, 0x10
xor esi, esi
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
mov ebx, 0
cmove ecx, esi
test ecx, ecx
jle 0x59fd7d
mov esi, ecx
not esi
cmp esi, eax
mov esi, bind
sbb esi, edx
jge 0x59fd7d
mov eax, 0xffffffff
mov dword [edi], eax
mov eax, bind
mov dword [edi + 4], eax
mov ebx, 1
jmp 0x59fd68
mov ebx, 0xffffffff
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005db451
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ecx
sar esi, 0x1f
add eax, ecx
adc edx, esi
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x59fd68