Function at 0x57dcd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2376
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x57dd3a
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]
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea eax, [esi + 0x20]
push eax
push ebx
call edi
test al, al
jne 0x57dd64
push 0
push 0x49
push 0x5de0d0
call fcn.0040b590
add esp, 0xc
push 0
lea edx, [ebp - 0x18]
push edx
push 4
lea eax, [esi + 0x24]
push eax
push ebx
call edi
test al, al
jne 0x57dd88
push 0
push 0x4b
push 0x5de0d0
call fcn.0040b590
add esp, 0xc
mov edi, dword [esi + 0x24]
imul edi, dword [esi + 0x20]
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
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.00598cf4
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x57dde4
push 0x57cc20
push 0x57cbb0
push edi
mov dword [eax], edi
add eax, 4
push 0x2c
push eax
mov dword [ebp - 0x3c], eax
call fcn.00599fe5
mov eax, dword [ebp - 0x3c]
jmp 0x57dde6
xor eax, eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x20]
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x57de5b
mov dword [ebp - 0x1c], eax
mov edi, dword [esi + 0x28]
add edi, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x18]
push edx
push 2
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
jne 0x57de26
push 0
push 0x57
jmp 0x57de30
cmp dword [ebp - 0x18], 0
jne 0x57de3d
push 0
push 0x59
push 0x5de0d0
call fcn.0040b590
add esp, 0xc
mov cx, word [ebp + 8]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x1c], 0x2c
mov word [edi + 0x1c], cx
mov edx, dword [esi + 0x24]
imul edx, dword [esi + 0x20]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, edx
jb 0x57de03
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
mov dword [esi + 0x2c], eax
mov eax, 0xaaaaaaab
mul ecx
mov dword [esi + 4], ecx
mov ecx, edx
mov eax, 0xaaaaaaab
mul edi
shr ecx, 1
shr edx, 1
mov dword [esi + 0x10], edx
imul edx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edi
mov edi, edx
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
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.00598cf4
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x57dee2
push 0x57cc20
push 0x57cbb0
push edi
lea ebx, [eax + 4]
push 0x2c
push ebx
mov dword [eax], edi
call fcn.00599fe5
jmp 0x57dee4
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [ebp - 0x1c], eax
cmp dword [esi + 0x10], eax
jbe 0x57e1c8
mov dword [ebp - 0x14], eax
nop
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x10], 0
jbe 0x57e1b4
mov edi, 2
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x14]
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x57df3c
cmp edx, dword [esi + 0x24]
jae 0x57df3c
mov ecx, eax
imul ecx, edx
lea ecx, [ecx + edi - 2]
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x28]
mov dword [ebp - 0x20], ecx
jne 0x57df43
mov dword [ebp - 0x20], 0
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x57df67
cmp edx, dword [esi + 0x24]
jae 0x57df67
mov ebx, dword [esi + 0x28]
mov ecx, eax
imul ecx, edx
add ecx, edi
imul ecx, ecx, 0x2c
lea ecx, [ecx + ebx - 0x2c]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x57df6e
mov dword [ebp - 0x24], 0
cmp edi, eax
jae 0x57df89
cmp edx, dword [esi + 0x24]
jae 0x57df89
mov ecx, eax
imul ecx, edx
add ecx, edi
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x28]
mov dword [ebp - 0x3c], ecx
jne 0x57df90
mov dword [ebp - 0x3c], 0
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x57dfba
mov edx, dword [ebp - 0x14]
inc edx
cmp edx, dword [esi + 0x24]
jae 0x57dfba
mov ebx, dword [ebp - 0x14]
lea edx, [ebx + 1]
imul edx, eax
lea edx, [edx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0x28]
je 0x57dfba
mov dword [ebp - 0x28], edx
jmp 0x57dfc4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], 0
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x57dfe9
lea edx, [ebx + 1]
cmp edx, dword [esi + 0x24]
jae 0x57dfe9
mov ecx, dword [esi + 0x28]
imul edx, eax
add edx, edi
imul edx, edx, 0x2c
lea edx, [edx + ecx - 0x2c]
mov dword [ebp - 0x2c], edx
test edx, edx
jne 0x57dff0
mov dword [ebp - 0x2c], 0
cmp edi, eax
jae 0x57e00c
lea edx, [ebx + 1]
cmp edx, dword [esi + 0x24]
jae 0x57e00c
imul edx, eax
add edx, edi
imul edx, edx, 0x2c
add edx, dword [esi + 0x28]
mov dword [ebp - 0x30], edx
jne 0x57e013
mov dword [ebp - 0x30], 0
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x57e036
lea edx, [ebx + 2]
cmp edx, dword [esi + 0x24]
jae 0x57e036
mov ecx, eax
imul ecx, edx
lea edx, [ecx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0x28]
mov dword [ebp - 0x34], edx
jne 0x57e03d
mov dword [ebp - 0x34], 0
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x57e064
lea edx, [ebx + 2]
cmp edx, dword [esi + 0x24]
jae 0x57e064
mov ecx, eax
imul ecx, edx
mov edx, dword [esi + 0x28]
add ecx, edi
imul ecx, ecx, 0x2c
lea edx, [ecx + edx - 0x2c]
mov dword [ebp - 0x38], edx
test edx, edx
jne 0x57e06b
mov dword [ebp - 0x38], 0
cmp edi, eax
jae 0x57e088
lea edx, [ebx + 2]
cmp edx, dword [esi + 0x24]
jae 0x57e088
imul eax, edx
add eax, edi
imul eax, eax, 0x2c
add eax, dword [esi + 0x28]
je 0x57e088
mov ebx, eax
jmp 0x57e08a
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x57e1a1
cmp dword [ebp - 0x24], 0
je 0x57e1a1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x57e1a1
cmp dword [ebp - 0x28], 0
je 0x57e1a1
cmp dword [ebp - 0x2c], 0
je 0x57e1a1
cmp dword [ebp - 0x30], 0
je 0x57e1a1
cmp dword [ebp - 0x34], 0
je 0x57e1a1
cmp dword [ebp - 0x38], 0
je 0x57e1a1
test ebx, ebx
je 0x57e1a1
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x1c], 1
je 0x57e155
cmp byte [eax + 0x1d], 0
jne 0x57e155
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x1c], 1
je 0x57e155
cmp byte [eax + 0x1d], 0
jne 0x57e155
call fcn.0050ab40
test eax, eax
jne 0x57e155
mov ecx, dword [ebp - 0x28]
call fcn.0050ab40
test eax, eax
jne 0x57e155
mov ecx, dword [ebp - 0x2c]
call fcn.0050ab40
test eax, eax
jne 0x57e155
mov ecx, dword [ebp - 0x30]
call fcn.0050ab40
test eax, eax
jne 0x57e155
mov ecx, dword [ebp - 0x34]
call fcn.0050ab40
test eax, eax
jne 0x57e155
mov ecx, dword [ebp - 0x38]
call fcn.0050ab40
test eax, eax
jne 0x57e155
mov ecx, ebx
call fcn.0050ab40
test eax, eax
jne 0x57e155
xor edx, edx
jmp 0x57e15a
mov edx, 1
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, dword [ebp - 0x10]
imul eax, eax, 0x2c
mov word [eax + ecx + 0x1c], dx
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x10]
imul ecx, ebx
add ecx, eax
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0xc]
imul ecx, ebx
add ecx, dword [ebp - 0x10]
push ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 0x10]
inc eax
add edi, 3
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0xc]
jb 0x57df16
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], 3
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x10]
jb 0x57df00
mov eax, 1
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