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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5e3440
push eax
mov eax, 0x14fc
mov dword fs:[0], esp
call fcn.005bd2d0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x37c]
call fcn.005806a0
xor edi, edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x1514], edi
call fcn.00559c60
mov eax, dword [esp + 0x1524]
or esi, 0xffffffff
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x7c]
cmp eax, esi
mov byte [esp + 0x1514], 1
mov dword [esp + 0x74], edi
mov dword [esp + 0x14], edi
je 0x59e18a
mov eax, dword [ebp + 0x78]
cmp eax, esi
je 0x59e18a
mov ecx, dword [ebp + 0xcc]
push ecx
push eax
lea ecx, [esp + 0x384]
call fcn.00580c40
cmp ax, di
jle 0x59e18a
movsx eax, ax
xor edx, edx
cmp eax, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x64], eax
jle 0x59ded2
lea ebx, [ebp + 0xe0]
jmp 0x59da84
or esi, 0xffffffff
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x174]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x380]
stosb byte es:[edi], al
call fcn.00580d80
lea ecx, [esp + 0x37c]
call fcn.00581350
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x37c]
call fcn.005aee50
mov dword [esp + 0x34], eax
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push eax
mov ecx, ebx
call fcn.0059fc30
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
je 0x59daf7
mov edx, dword [esp + 0x34]
mov edi, dword [ecx + 0xc]
cmp edx, edi
jb 0x59daf7
lea eax, [esp + 0x30]
jmp 0x59daff
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xe4]
cmp eax, ecx
mov dword [esp + 0x6c], eax
je 0x59dc6e
lea ecx, [esp + 0x6c]
call fcn.0059ed90
mov edi, eax
mov al, byte [edi + 8]
add edi, 8
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x34], esp
mov ecx, edi
mov dword [esp + 0x34], esi
mov byte [esi], al
call fcn.0055f330
test eax, eax
jge 0x59db40
xor eax, eax
shl eax, 4
push eax
call fcn.005bcf2f
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00555460
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
add edi, 0x10
lea ecx, [esi + 0x10]
push edi
mov byte [esp + 0x153c], 2
call fcn.0054b240
lea ecx, [esp + 0x64]
mov byte [esp + 0x1538], 1
call fcn.00559e10
lea ecx, [esp + 0x38]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [ebp + 0xd4]
push edx
mov dword [esp + 0x40], 0xffffffff
call fcn.0057b9c0
xor esi, esi
lea ecx, [esp + 0x40]
push esi
call fcn.0055a180
mov ecx, dword [eax + 4]
cmp ecx, esi
je 0x59dbcd
mov eax, dword [eax + 8]
sub eax, ecx
mov ecx, dword [esp + 0x1524]
sar eax, 2
cmp ecx, eax
jb 0x59dbd4
mov dword [esp + 0x1524], esi
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x59dbe4
mov dword [esp + 0x1524], eax
push esi
lea ecx, [esp + 0x44]
call fcn.0055a180
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1524]
lea edx, [eax + ecx*4]
lea ecx, [esp + 0x18]
push edx
call fcn.00558070
lea ecx, [esp + 0x18]
mov byte [esp + 0x1514], 3
call fcn.00558520
test ax, ax
jle 0x59dc3d
push esi
lea ecx, [esp + 0x1c]
call fcn.00558380
mov byte [esp + esi + 0x174], al
lea ecx, [esp + 0x18]
inc esi
call fcn.00558520
movsx eax, ax
cmp esi, eax
jl 0x59dc1b
mov ecx, dword [esp + 0x68]
lea edx, [ebp + 0x12c]
push ecx
lea eax, [esp + 0x178]
push edx
push eax
lea ecx, [esp + 0x388]
call fcn.005808b0
mov byte [esp + 0x1514], 1
lea ecx, [esp + 0x18]
jmp 0x59deb8
lea ecx, [esp + 0x40]
push 0
push ecx
lea edx, [esp + 0x7c]
push 3
push edx
push 0
lea eax, [esp + 0x188]
push 0
lea ecx, [esp + 0x394]
push eax
push ecx
mov ecx, dword [ebp + 0xd4]
call fcn.00579f40
test eax, eax
je 0x59debd
push esi
lea edx, [esp + 0x178]
push 0
push edx
lea ecx, [esp + 0x388]
call fcn.005808b0
lea ecx, [esp + 0xb4]
call fcn.00558060
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1514], 4
call fcn.00559c60
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov byte [esp + 0x151c], 5
call fcn.0055a190
lea ecx, [esp + 0xb8]
call fcn.00558390
mov cl, byte [esp + 0x40]
sub esp, 0x24
mov esi, esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x34], esi
mov byte [esi], cl
lea ecx, [esp + 0x64]
call fcn.0055f330
test eax, eax
jge 0x59dd21
xor eax, eax
shl eax, 4
push eax
call fcn.005bcf2f
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [esp + 0x6c]
mov ecx, esi
push eax
mov eax, dword [esp + 0x6c]
push edx
push eax
call fcn.00555460
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x1538], 6
push ecx
lea ecx, [esi + 0x10]
call fcn.0054b240
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1538], 5
call fcn.00559e10
lea ecx, [esp + 0x37c]
call fcn.005aee50
mov dword [esp + 0x88], eax
lea eax, [esp + 0xb4]
lea edx, [esp + 0x8c]
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x14], edx
call fcn.00558070
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1514], 7
push ecx
lea ecx, [esp + 0x94]
call fcn.005673c0
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x8c]
lea eax, [esp + 0xe0]
push ecx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1518], 8
mov dword [esp + 0xe0], edx
mov dword [esp + 0x14], eax
call fcn.00558070
lea edx, [esp + 0x90]
lea ecx, [esp + 0xe4]
push edx
mov byte [esp + 0x1518], 9
call fcn.005673c0
lea eax, [esp + 0xdc]
lea ecx, [esp + 0x108]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0x151c], 0xa
call fcn.0059eea0
lea edx, [esp + 0xe0]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1514], 0xb
call fcn.00559d60
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1514], 8
call fcn.005581a0
lea eax, [esp + 0x8c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x1514], 0xc
call fcn.00559d60
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1514], 5
call fcn.005581a0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1514], 0xd
call fcn.00559d60
mov byte [esp + 0x1514], 1
lea ecx, [esp + 0xb4]
call fcn.005581a0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
inc edx
cmp edx, eax
mov dword [esp + 0x3c], edx
jl 0x59da81
cmp word [esp + 0x500], 1
mov ecx, 0x42
lea esi, [esp + 0x400]
lea edi, [esp + 0x274]
rep movsd dword es:[edi], dword [esi]
jae 0x59df13
lea ecx, [esp + 0x40]
mov byte [esp + 0x1514], 0
call fcn.00559d60
mov dword [esp + 0x1514], 0xffffffff
jmp 0x59e1a2
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, ebx
jne 0x59df3d
lea ecx, [esp + 0x40]
mov byte [esp + 0x1514], bl
call fcn.00559d60
mov dword [esp + 0x1514], 0xffffffff
jmp 0x59e1a2
cmp eax, 8
jg 0x59df52
mov cl, byte [esp + 0x400]
mov byte [esp + 0x110], cl
jmp 0x59df7d
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, ebx
jle 0x59df7d
mov ecx, eax
lea esi, [esp + 0x274]
mov edx, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call fcn.005b1cd0
mov eax, dword [ebp + 0xcc]
lea ecx, [esp + 0x78]
push eax
mov byte [esp + 0x1518], 0xe
call fcn.00592d40
test eax, eax
jne 0x59dfd4
lea ecx, [esp + 0x78]
mov byte [esp + 0x1514], 1
call fcn.005b1d70
lea ecx, [esp + 0x40]
mov byte [esp + 0x1514], 0
call fcn.00559d60
mov dword [esp + 0x1514], 0xffffffff
jmp 0x59e1a2
mov cl, byte [esp + 0x2f]
mov edi, 0x619c18
mov byte [esp + 0x1c], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x24]
call fcn.004018c0
test al, al
je 0x59e02e
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov byte [eax + ebx], 0
mov edx, dword [ebp + 0x7c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1514], 0xf
push ecx
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.005b1db0
mov ecx, dword [esp + 0x24]
mov eax, dword [0x5e5150]
mov ebp, ecx
cmp eax, ebp
jae 0x59e069
mov ebp, eax
mov ebx, dword [esp + 0x151c]
lea edx, [esp + 0x1c]
cmp ebx, edx
jne 0x59e091
push eax
push ebp
mov ecx, ebx
call fcn.00421610
push 0
push 0
mov ecx, ebx
call fcn.00421610
jmp 0x59e117
test ebp, ebp
jbe 0x59e0dd
cmp ebp, ecx
jne 0x59e0dd
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x59e0a6
mov eax, 0x5e514c
cmp byte [eax - 1], 0xfe
jae 0x59e0dd
push 1
mov ecx, ebx
call fcn.00401850
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x59e0c2
mov eax, 0x5e514c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x59e117
push 1
push ebp
mov ecx, ebx
call fcn.004018c0
test al, al
je 0x59e117
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x59e0f8
mov esi, 0x5e514c
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x59e13e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x59e135
cmp al, 0xff
je 0x59e135
dec al
mov byte [ecx], al
jmp 0x59e13e
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x1514], 1
call fcn.005b1d70
lea ecx, [esp + 0x40]
mov byte [esp + 0x1514], 0
call fcn.00559d60
lea ecx, [esp + 0x37c]
mov dword [esp + 0x1514], 0xffffffff
call fcn.005807b0
mov eax, 1
jmp 0x59e1b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1514], 0
call fcn.00559d60
mov dword [esp + 0x1514], esi
lea ecx, [esp + 0x37c]
call fcn.005807b0
xor eax, eax
mov ecx, dword [esp + 0x150c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1508
ret 0xc