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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b8660
push eax
mov al, byte [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x58
test al, al
push esi
mov esi, ecx
jne 0x595dc7
push 0x17
xor esi, esi
push 0x5de63c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
call fcn.004041a0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], esi
call fcn.005955e0
push 0x5fbffc
lea ecx, [esp + 0x34]
push ecx
call fcn.0057b3e2
mov eax, dword [esp + 0x70]
test eax, eax
push ebx
push ebp
push edi
je 0x595fbf
mov ecx, dword [esi + 0x3c]
lea edi, [ecx + eax]
mov al, byte [esi + 0x24]
test al, al
jne 0x595e54
mov eax, dword [esi + 0x18]
cmp edi, eax
lea ebx, [esi + 0x18]
jb 0x595e54
mov edx, dword [esp + 0x78]
sub eax, ecx
push eax
lea ebp, [esi + 0x28]
push edx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.00594e20
mov eax, dword [esi]
push ebx
mov ecx, ebp
mov dword [esp + 0x80], eax
call fcn.00594d50
push eax
mov eax, dword [esp + 0x80]
mov ecx, esi
call dword [eax + 0xc4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
lea eax, [eax + ecx*2 - 2]
xor edx, edx
div ecx
push eax
push ecx
mov ecx, ebp
call fcn.00595bb0
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
add ebp, ecx
mov dword [esp + 0x78], ebp
sub edi, eax
mov byte [esi + 0x24], 1
jmp 0x595e58
mov ebp, dword [esp + 0x78]
mov al, byte [esi + 0x24]
test al, al
je 0x595fb2
mov eax, dword [esi + 0x1c]
cmp eax, 1
lea ebx, [esi + 0x1c]
jne 0x595ec7
cmp edi, dword [esi + 0x20]
jbe 0x595eab
mov eax, dword [esi + 0x3c]
test eax, eax
jbe 0x595eab
mov eax, dword [esi + 0x20]
mov ecx, edi
sub ecx, eax
lea edx, [esp + 0x78]
mov dword [esp + 0x78], ecx
push edx
lea ecx, [esi + 0x28]
call fcn.00594d50
mov ebx, dword [esp + 0x78]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 0xd0]
mov eax, dword [esi + 0x20]
sub edi, ebx
cmp edi, eax
ja 0x595e73
mov eax, dword [esi + 0x20]
cmp edi, eax
jbe 0x595fb2
mov ebx, edi
sub ebx, eax
mov eax, dword [esp + 0x88]
push eax
jmp 0x595fa5
mov ecx, dword [esi + 0x20]
add ecx, eax
cmp edi, ecx
jb 0x595f2c
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
jb 0x595f2c
mov edx, dword [esi + 0x34]
mov eax, ecx
cmp eax, edx
jb 0x595f0d
mov ecx, dword [esi + 0x40]
mov ebp, dword [esi + 0x2c]
mov dword [esp + 0x7c], ecx
add ecx, edx
mov edx, dword [esi + 0x30]
add ebp, edx
cmp ecx, ebp
mov dword [esi + 0x40], ecx
jne 0x595efb
mov dword [esi + 0x40], edx
mov ecx, dword [esi + 0x34]
mov ebp, dword [esp + 0x78]
sub eax, ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x7c]
jmp 0x595f0f
xor eax, eax
mov ecx, dword [ebx]
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xd0]
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
mov ecx, eax
sub edi, eax
add edx, ecx
cmp edi, edx
jae 0x595ed0
mov eax, dword [ebx]
mov ecx, dword [esi + 0x20]
add ecx, eax
cmp edi, ecx
jb 0x595f78
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jbe 0x595f78
mov edx, dword [esp + 0x78]
mov ebp, eax
sub ebp, ecx
push ebp
lea ecx, [esi + 0x28]
push edx
call fcn.00594e20
mov edx, dword [esp + 0x78]
mov eax, dword [ebx]
add edx, ebp
mov ebp, dword [esi]
push eax
lea ecx, [esi + 0x28]
mov dword [esp + 0x7c], edx
call fcn.00594d10
push eax
mov ecx, esi
call dword [ebp + 0xd0]
mov eax, dword [ebx]
mov ebp, dword [esp + 0x78]
sub edi, eax
mov ecx, dword [esi + 0x20]
lea edx, [ecx + eax]
cmp edi, edx
jb 0x595fb2
mov eax, edi
sub eax, ecx
lea ecx, [esp + 0x78]
push ebx
push ecx
mov dword [esp + 0x80], eax
call fcn.00594b50
mov edx, dword [esp + 0x90]
add esp, 8
mov ebx, eax
push edx
push ebx
mov ecx, esi
push ebp
call fcn.00594970
add ebp, ebx
sub edi, ebx
sub edi, dword [esi + 0x3c]
push edi
push ebp
lea ecx, [esi + 0x28]
call fcn.00594e20
mov eax, dword [esp + 0x80]
test eax, eax
je 0x596098
mov al, byte [esi + 0x24]
test al, al
jne 0x595fe8
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x595fe8
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc4]
mov eax, dword [esi + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.00540720
mov ebp, dword [esp + 0x1c]
lea edi, [esi + 0x28]
push ebp
mov ecx, edi
mov dword [esp + 0x74], 1
call fcn.00594db0
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
push ebp
mov ecx, esi
call dword [edx + 0xd4]
mov ebx, dword [esi + 0x18]
push ebx
mov ecx, edi
mov byte [esi + 0x24], 0
call fcn.00540cf0
mov ecx, dword [edi + 8]
mov dword [edi + 0x18], ecx
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0
mov edi, dword [esp + 0x80]
mov edx, dword [esi]
mov ecx, esi
dec edi
call dword [edx + 0xa4]
mov ecx, dword [esp + 0x84]
mov edx, dword [eax]
push ecx
push edi
push 0
push 0
push 0x62172c
mov ecx, eax
call dword [edx + 0x88]
mov ecx, dword [esp + 0x18]
neg eax
sbb eax, eax
mov edx, ecx
neg eax
mov dword [esi + 0x14], eax
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call fcn.0057cfc7
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 0x14