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

Disassembly:
push 0xffffffffffffffff
push 0x5e31b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov al, byte [esp + 1]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x74], al
call fcn.00401850
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
lea ecx, [esp + 0x78]
call fcn.004017b0
mov si, word [ebp + 0xf4]
mov dword [esp + 0x10c], 0
test si, si
je 0x599de8
xor ecx, ecx
mov eax, 0x38e38e39
mov cx, word [ebp + 0xf6]
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 1]
cmp edx, 2
jne 0x59a0c7
mov ebx, dword [esp + 0x114]
and ebx, esi
jmp 0x599def
mov ebx, dword [esp + 0x114]
mov eax, ebx
xor edx, edx
and eax, 0xffff
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x18], edx
push str._04x
push ecx
mov byte [esp + 0x24], dl
call fcn.005bcf3d
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.00502fe0
mov al, byte [esp + 0x11]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00401850
lea ecx, [esp + 0x11]
mov byte [esp + 0x10c], 1
push ecx
lea ecx, [esp + 0x38]
call fcn.0055f310
xor edx, edx
xor eax, eax
lea ecx, [esp + 0x23]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4a], eax
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x110], 2
mov word [esp + 0x4c], dx
mov word [esp + 0x52], ax
call fcn.0055f310
lea edx, [esp + 0x22]
lea ecx, [esp + 0x60]
push edx
mov byte [esp + 0x110], 3
call fcn.0055f310
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10c], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
lea ecx, [esp + 0x2c]
call fcn.004017b0
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
lea ecx, [esp + 0x3c]
call fcn.004017b0
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
lea ecx, [esp + 0x58]
call fcn.004017b0
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
lea ecx, [esp + 0x68]
call fcn.004017b0
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10c], 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
lea ecx, [esp + 0x3c]
call fcn.004017b0
mov eax, dword [0x5e5150]
lea ecx, [esp + 0x70]
push eax
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.004120f0
mov esi, dword [esp + 0x118]
mov edi, dword [esp + 0x11c]
push esi
lea edx, [esp + 0x54]
push edi
push edx
mov ecx, ebp
call fcn.0059d9d0
push esi
lea eax, [esp + 0x28]
push edi
push eax
mov ecx, ebp
call fcn.0059e1d0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x1c], 0
test eax, eax
jbe 0x599fdc
shr eax, 1
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x599fbc
mov eax, 0x5e514c
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xa0]
mov ecx, esi
and ecx, 0xff
push ecx
push eax
push edx
call fcn.005b1750
add esp, 0xc
jmp 0x599fe0
mov esi, dword [esp + 0x1c]
xor eax, eax
lea ecx, [esp + 0x34]
mov al, bh
lea edx, [esp + 0x24]
mov byte [esp + 0x12], al
push ecx
lea eax, [esp + 0x94]
push edx
mov byte [esp + 0x1b], 0
push eax
mov byte [esp + 0x1f], bl
call fcn.00556bb0
add esp, 0xc
mov ecx, dword [0x5e5150]
mov byte [esp + 0x10c], 6
push ecx
push 0
push eax
lea ecx, [esp + 0x6c]
call fcn.004120f0
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x110], 5
call fcn.00401850
lea ecx, [esp + 0x80]
call fcn.005b1cd0
mov edx, dword [ebp + 0xcc]
lea ecx, [esp + 0x80]
push edx
mov byte [esp + 0x110], 7
call fcn.00592d40
test eax, eax
jne 0x59a0e4
lea ecx, [esp + 0x80]
mov byte [esp + 0x10c], 5
call fcn.005b1d70
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x110], 0xa
call fcn.00401850
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x110], 9
call fcn.00401850
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x110], 8
call fcn.00401850
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x110], 0
call fcn.00401850
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x110], 0xffffffff
call fcn.00401850
xor eax, eax
jmp 0x59a293
mov eax, dword [ebp + 0x9c]
cmp eax, 0xffffffff
je 0x59a11a
lea ecx, [esp + 0x60]
and esi, 0xff
push ecx
push eax
shl esi, 3
lea edx, [esp + 0xa8]
push esi
push edx
lea eax, [esp + 0x22]
push 0x10
push eax
lea ecx, [esp + 0x98]
call fcn.005b1fa0
xor edi, edi
lea ebx, [ebp + 0x34]
xor esi, esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x59a1d9
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edi, edx
jae 0x59a1d9
mov eax, dword [ebp + 0x38]
mov ecx, dword [esi + eax + 8]
mov eax, dword [esi + eax + 4]
test eax, eax
jne 0x59a15e
mov eax, 0x5e514c
mov edx, dword [esp + 0x2c]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x34]
call fcn.005030a0
test eax, eax
jne 0x59a19e
mov eax, dword [ebp + 0x38]
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [esi + eax + 0x14]
test eax, eax
jne 0x59a188
mov eax, 0x5e514c
push ecx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
push eax
push 0
call fcn.005030a0
test eax, eax
je 0x59a1eb
mov eax, dword [ebp + 0x38]
mov ecx, dword [esi + eax + 8]
mov eax, dword [esi + eax + 4]
test eax, eax
jne 0x59a1b2
mov eax, 0x5e514c
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
push 0
lea ecx, [esp + 0x34]
call fcn.005030a0
test eax, eax
jne 0x59a1d0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x59a1eb
inc edi
add esi, 0x4c
jmp 0x59a121
mov eax, dword [ebx + 8]
lea edx, [esp + 0x24]
push edx
push 1
push eax
mov ecx, ebx
call fcn.0059f400
lea ecx, [esp + 0x80]
mov byte [esp + 0x10c], 5
call fcn.005b1d70
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x110], 0xd
call fcn.00401850
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x110], 0xc
call fcn.00401850
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x110], 0xb
call fcn.00401850
mov ecx, dword [esp + 0x28]
xor esi, esi
cmp ecx, esi
je 0x59a25e
mov al, byte [ecx - 1]
test al, al
je 0x59a254
cmp al, 0xff
je 0x59a254
dec al
mov byte [ecx - 1], al
jmp 0x59a25e
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x28], esi
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
je 0x59a28e
mov al, byte [ecx - 1]
test al, al
je 0x59a284
cmp al, 0xff
je 0x59a284
dec al
mov byte [ecx - 1], al
jmp 0x59a28e
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 0xc