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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
or edi, 0xffffffff
mov ebx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov al, byte [esi]
mov ecx, edi
xor edx, edx
mov dword [esp + 0x20], ebx
test al, al
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov ebp, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], edx
je 0x539443
cmp dword [esp + 0x28], 6
jge 0x539435
test al, al
mov byte [esp + 0x7c], 0
je 0x5391aa
and eax, 0xff
push eax
call fcn.005c3619
add esp, 4
test eax, eax
jne 0x5391aa
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x539190
xor eax, eax
mov al, byte [esi]
push eax
call fcn.005c356e
add esp, 4
test eax, eax
je 0x53925e
mov cl, byte [0x6cc7b8]
xor eax, eax
mov byte [esp + 0x58], cl
mov ecx, 7
lea edi, [esp + 0x59]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str._31_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
push esi
stosb byte es:[edi], al
call fcn.005c4adc
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
not ecx
dec ecx
cmp eax, 0xffffffff
mov edi, ecx
jne 0x53921b
lea eax, [esp + 0x58]
push edi
push eax
mov ecx, ebx
call fcn.00538f50
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x539257
cmp dword [esp + 0x18], 0xffffffff
jne 0x539237
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.00538fa0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x539257
cmp ebp, 0xffffffff
jne 0x53941c
lea edx, [esp + 0x58]
mov ecx, ebx
push edx
call fcn.00538fe0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x53941c
add esi, edi
jmp 0x539405
xor eax, eax
mov al, byte [esi]
push eax
call fcn.005c359c
add esp, 4
test eax, eax
je 0x539408
cmp dword [esp + 0x1c], edi
jne 0x5392a3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push str._02d:_02d:_02d
push esi
call fcn.005c4adc
add esp, 0x14
cmp eax, 3
jne 0x5392a3
add esi, 8
jmp 0x539408
lea ecx, [esp + 0x38]
push 0xa
push ecx
push esi
call fcn.005c696f
add esp, 0xc
cmp ebp, edi
mov ecx, eax
jne 0x53931c
mov edx, dword [esp + 0x38]
sub edx, esi
cmp edx, 4
jne 0x53931c
cmp ecx, 0x578
jg 0x53931c
cmp dword [esp + 0x3c], esi
jae 0x53931c
mov bl, byte [esi - 1]
cmp bl, 0x2b
je 0x5392df
cmp bl, 0x2d
jne 0x539318
mov eax, 0x51eb851f
mov ebp, 0x64
imul ecx
sar edx, 5
mov eax, edx
mov byte [esp + 0x7c], 1
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edi, [eax + eax*4]
mov eax, ecx
cdq
idiv ebp
lea eax, [edx + edi*4]
lea eax, [eax + eax*2]
lea ebp, [eax + eax*4]
shl ebp, 2
cmp bl, 0x2b
jne 0x539318
neg ebp
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
mov edx, edi
sub edx, esi
cmp edx, 8
jne 0x539386
mov eax, dword [esp + 0x10]
or edx, 0xffffffff
cmp eax, edx
jne 0x539389
cmp dword [esp + 0x18], edx
jne 0x539389
cmp dword [esp + 0x14], edx
jne 0x539389
mov eax, 0x68db8bad
mov esi, 0x2710
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0x10], edx
cdq
idiv esi
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax - 1]
mov eax, ecx
mov dword [esp + 0x18], edx
mov ecx, 0x64
cdq
idiv ecx
mov dword [esp + 0x14], edx
jmp 0x539403
or edx, 0xffffffff
mov al, byte [esp + 0x7c]
test al, al
jne 0x539403
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5393c7
cmp dword [esp + 0x14], edx
jne 0x539429
test ecx, ecx
jle 0x5393b5
cmp ecx, 0x20
jge 0x5393b5
mov dword [esp + 0x14], ecx
mov byte [esp + 0x7c], 1
mov al, byte [esp + 0x7c]
mov dword [esp + 0x24], 1
test al, al
jne 0x539403
jmp 0x5393cc
cmp eax, 1
jne 0x539429
cmp dword [esp + 0x10], edx
jne 0x539429
cmp ecx, 0x76c
mov dword [esp + 0x10], ecx
jge 0x5393f5
cmp ecx, 0x46
jle 0x5393eb
add ecx, 0x76c
jmp 0x5393f1
add ecx, 0x7d0
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edx
jne 0x539403
mov dword [esp + 0x24], 0
mov esi, edi
or edi, 0xffffffff
mov edx, dword [esp + 0x28]
mov al, byte [esi]
inc edx
test al, al
mov dword [esp + 0x28], edx
je 0x539435
jmp 0x53917c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret 4
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x68
ret 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, edi
jne 0x539451
xor edx, edx
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x5394d0
mov edx, dword [esp + 0x18]
cmp edx, edi
je 0x5394d0
cmp ecx, edi
je 0x5394d0
cmp ecx, 0x7f5
jle 0x53947c
pop edi
pop esi
pop ebp
mov eax, bind
pop ebx
add esp, 0x68
ret 4
add ecx, 0xfffff894
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
call fcn.00539030
cmp eax, edi
je 0x5394d2
mov ecx, ebp
inc ecx
neg ecx
sbb ecx, ecx
and ecx, ebp
jle 0x5394c4
lea edx, [ecx + eax]
cmp edx, eax
jl 0x5394d0
pop edi
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0x68
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4