Function at 0x59e9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6d5760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
jne 0x59ea0c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x20]
push 0
push ecx
push 4
lea eax, [ebx + 4]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea eax, [ebx + 8]
push eax
push esi
call edi
mov esi, dword [ebx + 8]
xor ecx, ecx
imul esi, dword [ebx + 4]
mov edx, 0x28
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005b591a
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x59ea86
push fcn.0059b700
push 0x59b6b0
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.005b7a10
jmp 0x59ea88
xor edi, edi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0xc], edi
mov dword [ebp - 0x18], esi
cmp dword [ebx + 8], esi
jbe 0x59eafd
lea esp, [esp]
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x59eaf4
push 0
lea eax, [ebp - 0x20]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 4]
imul eax, esi
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0xc]
lea esi, [eax + ecx*8]
test esi, esi
je 0x59eaeb
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x18]
call dword [eax + 0x18]
mov ax, word [ebp + 8]
mov word [esi + 0x1c], ax
mov esi, dword [ebp - 0x18]
inc edi
cmp edi, dword [ebx + 4]
jb 0x59eaa7
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebx + 8]
jb 0x59eaa0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebx + 0x2c], eax
mov eax, 0xaaaaaaab
mul ecx
mov dword [ebx + 0x10], ecx
mov eax, 0xaaaaaaab
mov ecx, edx
mov dword [ebx + 0x14], esi
mul esi
shr ecx, 1
mov esi, edx
mov dword [ebx + 0x18], ecx
shr esi, 1
mov edx, 0x28
mov dword [ebx + 0x1c], esi
imul esi, ecx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005b591a
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x59eb86
push fcn.0059b700
push 0x59b6b0
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push 0x28
push edi
call fcn.005b7a10
jmp 0x59eb88
xor edi, edi
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x30], edi
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
cmp dword [ebx + 0x1c], eax
jbe 0x59eea1
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x59ebb0
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x1c], 0
jbe 0x59ee89
lea eax, [edx + 2]
mov esi, 2
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov eax, dword [ebx + 4]
lea edi, [esi - 2]
cmp edi, eax
jae 0x59ebf9
cmp edx, dword [ebx + 8]
jae 0x59ebf9
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x38], edx
test edx, edx
jne 0x59ec00
mov dword [ebp - 0x38], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x59ec27
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x59ec27
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
add ecx, 0xffffffd8
mov dword [ebp - 0x3c], ecx
jne 0x59ec2e
mov dword [ebp - 0x3c], 0
cmp esi, eax
jae 0x59ec51
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebx + 8]
jae 0x59ec51
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x59ec58
mov dword [ebp - 0x24], 0
cmp edi, eax
jae 0x59ec7f
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x59ec7f
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x59ec86
mov dword [ebp - 0x28], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x59ecae
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x59ecae
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
add ecx, 0xffffffd8
mov dword [ebp - 0x2c], ecx
jne 0x59ecb5
mov dword [ebp - 0x2c], 0
cmp esi, eax
jae 0x59ecd9
mov edx, dword [ebp - 0x14]
dec edx
cmp edx, dword [ebx + 8]
jae 0x59ecd9
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea ecx, [ecx + edx*8]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x59ece0
mov dword [ebp - 0x30], 0
cmp edi, eax
lea edi, [ebx + 8]
jae 0x59ed08
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x59ed08
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x34], edx
test edx, edx
jne 0x59ed0f
mov dword [ebp - 0x34], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x59ed37
mov edx, dword [ebp - 0x14]
cmp edx, dword [edi]
jae 0x59ed37
mov ecx, eax
imul ecx, edx
add ecx, esi
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0xc]
lea edx, [edx - 5]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x40], edx
test edx, edx
jne 0x59ed3c
xor edx, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x59ed59
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edi]
jae 0x59ed59
imul eax, ecx
add eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0xc]
lea edi, [eax + ecx*8]
test edi, edi
jne 0x59ed5b
xor edi, edi
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x59ee70
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x59ee70
cmp dword [ebp - 0x24], 0
je 0x59ee70
cmp dword [ebp - 0x28], 0
je 0x59ee70
cmp dword [ebp - 0x2c], 0
je 0x59ee70
cmp dword [ebp - 0x30], 0
je 0x59ee70
cmp dword [ebp - 0x34], 0
je 0x59ee70
test edx, edx
je 0x59ee70
test edi, edi
je 0x59ee70
cmp byte [ecx + 0x1c], 1
je 0x59ee22
cmp byte [ecx + 0x1d], 0
jne 0x59ee22
cmp byte [eax + 0x1c], 1
je 0x59ee22
cmp byte [eax + 0x1d], 0
jne 0x59ee22
mov ecx, dword [ebp - 0x24]
call fcn.00532350
test eax, eax
jne 0x59ee22
mov ecx, dword [ebp - 0x28]
call fcn.00532350
test eax, eax
jne 0x59ee22
mov ecx, dword [ebp - 0x2c]
call fcn.00532350
test eax, eax
jne 0x59ee22
mov ecx, dword [ebp - 0x30]
call fcn.00532350
test eax, eax
jne 0x59ee22
mov ecx, dword [ebp - 0x34]
call fcn.00532350
test eax, eax
jne 0x59ee22
mov ecx, dword [ebp - 0x40]
call fcn.00532350
test eax, eax
jne 0x59ee22
mov ecx, edi
call fcn.00532350
test eax, eax
jne 0x59ee22
xor edx, edx
jmp 0x59ee27
mov edx, 1
mov eax, dword [ebx + 0x18]
imul eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
push edi
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x30]
mov word [eax + ecx*8 + 0x1c], dx
mov eax, dword [ebx + 0x18]
imul eax, dword [ebp - 0x10]
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
imul eax, edx
push edx
add eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x1c]
add esi, 3
mov edx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebx + 0x18]
jb 0x59ebd0
mov eax, dword [ebp - 0x10]
inc eax
add edx, 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
cmp eax, dword [ebx + 0x1c]
jb 0x59ebb0
mov ecx, 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4