Function at 0x583080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xba
push 0
push 0
dec ecx
jne 0x583089
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x58376f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x15], 0x10
cmp byte [ebp - 0x44], 0xdf
jne 0x5830cf
mov byte [ebp - 0x15], 0xc
lea eax, [ebp - 0x394]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 0x29c]
call fcn.004054ec
mov eax, dword [ebp - 0x394]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x15]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.005828a0
cmp byte [ebp - 0x44], 0xa1
jne 0x583114
cmp byte [ebp - 0x42], 8
je 0x583110
cmp byte [ebp - 0x42], 0
jne 0x583114
mov byte [ebp - 0x15], 0xc
mov byte [ebp - 9], 0
mov eax, 0xc685b4
xor ecx, ecx
mov edx, 0x200
call fcn.00403450
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd68
xor ecx, ecx
mov edx, 0x298
call fcn.00403450
cmp byte [ebp - 0x44], 0xee
jne 0x583147
mov byte [ebp - 0x15], 0xc
mov eax, dword [ebp + 0x10]
mov word [eax - 0x298], 0x2c
mov eax, dword [ebp + 0x10]
mov byte [eax - 0x294], 1
mov eax, dword [ebp + 0x10]
mov dl, byte [ebp - 0x15]
mov byte [eax - 0x292], dl
mov eax, dword [ebp + 0x10]
mov byte [eax - 0x291], 0x18
mov eax, dword [ebp + 0x10]
mov byte [eax - 0x290], 1
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [eax - 0x28c], edx
mov eax, dword [ebp + 0x10]
mov dword [eax - 0x288], 2
cmp byte [ebp - 0x44], 0xd8
jne 0x5831af
cmp byte [ebp - 0x42], 2
jne 0x5831af
mov eax, dword [ebp + 0x10]
mov dword [eax - 0x288], 5
cmp byte [ebp + 8], 0
je 0x5831c2
mov eax, dword [ebp + 0x10]
mov dword [eax - 0x288], 0x10
mov eax, dword [ebp + 0x10]
add eax, 0xfffffdb4
mov edx, dword [ebp + 0x10]
add edx, 0xfffffd68
sub eax, edx
mov edx, dword [ebp + 0x10]
mov dword [edx - 0x284], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd94
mov edx, dword [ebp + 0x10]
add edx, 0xfffffd68
sub eax, edx
mov edx, dword [ebp + 0x10]
mov dword [edx - 0x280], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x44]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx - 0x27c], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x10
jne 0x5831ff
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x284]
mov edx, dword [ebp + 0x10]
add eax, dword [edx - 0x28c]
mov edx, dword [ebp + 0x10]
mov dword [edx - 0x2a4], eax
push 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd60
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2a4]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd68
push eax
push 0x2c
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd68
push eax
push 0x4d004
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2a8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x583565
mov edx, dword [ebp - 4]
mov eax, 0x58378c
call fcn.0040588c
test eax, eax
jle 0x5834d7
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x26c], 0xf0
jne 0x5834d7
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x26a], 2
jne 0x5834d7
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
lea edx, [eax + 0xc61f54]
lea eax, [ebp - 0x520]
call fcn.004032b0
mov edx, 0x583794
lea eax, [ebp - 0x520]
mov cl, 0x86
call fcn.00403280
lea edx, [ebp - 0x520]
lea eax, [ebp - 0x498]
call fcn.004054ec
lea eax, [ebp - 0x498]
push eax
lea edx, [ebp - 0x524]
mov eax, dword [ebp - 0x24]
call fcn.0040a83c
mov edx, dword [ebp - 0x524]
pop eax
call fcn.00405550
mov edx, dword [ebp - 0x498]
lea eax, [ebp - 0x494]
mov ecx, 0xff
call fcn.00405524
lea edx, [ebp - 0x494]
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xc61f54
mov cl, 0x82
call fcn.004032bc
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x260], 4
jne 0x5833f6
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
lea edx, [eax + 0xc61f54]
lea eax, [ebp - 0x5ac]
call fcn.004032b0
mov edx, 0x58379c
lea eax, [ebp - 0x5ac]
mov cl, 0x83
call fcn.00403280
lea edx, [ebp - 0x5ac]
lea eax, [ebp - 0x528]
call fcn.004054ec
lea eax, [ebp - 0x528]
push eax
lea edx, [ebp - 0x5b0]
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax - 0x25f]
call fcn.0040a83c
mov edx, dword [ebp - 0x5b0]
pop eax
call fcn.00405550
mov edx, dword [ebp - 0x528]
lea eax, [ebp - 0x494]
mov ecx, 0xff
call fcn.00405524
lea edx, [ebp - 0x494]
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xc61f54
mov cl, 0x82
call fcn.004032bc
mov eax, 0x1e8480
call fcn.00403470
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
shld edx, eax, 9
shl eax, 9
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
shrd eax, edx, 0x17
shr edx, 0x17
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2a8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x16], 0
cmp dword [ebp - 0x28], 0xffffffff
je 0x58347c
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0x200
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2a8]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x16], al
cmp byte [ebp - 0x16], 0
je 0x5834a2
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xc61f54
mov edx, 0x5837a0
mov cl, 0x82
call fcn.00403280
jmp 0x5834c0
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xc61f54
mov edx, 0x5837a4
mov cl, 0x82
call fcn.00403280
push 0x1f4
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 5
jle 0x5830c1
push 0x5837b0
push dword [ebp - 4]
push 0x5837c0
lea edx, [ebp - 0x5b8]
xor eax, eax
call fcn.0040a83c
push dword [ebp - 0x5b8]
lea eax, [ebp - 0x5b4]
mov edx, 4
call fcn.00405608
mov eax, dword [ebp - 0x5b4]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
add ecx, 0x5600
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x29c]
add eax, 0x5214
mov edx, 0x3e8
call fcn.004a1208
cmp byte [ebp + 0xc], 0
je 0x583548
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00582b7c
pop ecx
mov byte [ebp - 9], 1
mov eax, 0x5837d4
call fcn.0049d570
test al, al
je 0x58355e
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x5835d9
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
push 0x5837b0
push dword [ebp - 4]
push 0x5837c0
lea edx, [ebp - 0x5c0]
mov eax, dword [ebp - 0x14]
call fcn.0040a83c
push dword [ebp - 0x5c0]
lea eax, [ebp - 0x5bc]
mov edx, 4
call fcn.00405608
mov eax, dword [ebp - 0x5bc]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
add ecx, 0x5600
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x29c]
add eax, 0x5214
mov edx, 0x3e8
call fcn.004a1208
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00582b7c
pop ecx
mov eax, 0x5837ec
call fcn.0049d570
test al, al
jne 0x5835f4
cmp byte [0x7cdf68], 0
je 0x5836e2
push 0x5837fc
lea edx, [ebp - 0x5cc]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.0040a83c
push dword [ebp - 0x5cc]
push 0x583814
push dword [ebp - 4]
push 0x583814
lea edx, [ebp - 0x5d0]
mov eax, dword [ebp - 0x14]
call fcn.0040a83c
push dword [ebp - 0x5d0]
push 0x583820
lea edx, [ebp - 0x5d4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2b0]
call fcn.0040a83c
push dword [ebp - 0x5d4]
lea eax, [ebp - 0x5c8]
mov edx, 8
call fcn.00405608
mov eax, dword [ebp - 0x5c8]
push eax
lea edx, [ebp - 0x5d8]
xor eax, eax
call fcn.004a29b8
mov eax, dword [ebp - 0x5d8]
lea ecx, [ebp - 0x5c4]
pop edx
call fcn.0049d0c8
mov edx, dword [ebp - 0x5c4]
lea eax, [ebp - 0x390]
call fcn.00403084
mov edx, 1
lea eax, [ebp - 0x390]
call fcn.004037f4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
mov ecx, dword [ecx + 0x5600]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax - 0x29c]
add edx, 0x5214
lea eax, [ebp - 0x390]
call fcn.00403208
lea eax, [ebp - 0x390]
call fcn.00403228
mov eax, 0x58382c
call fcn.0049d570
test al, al
je 0x583723
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0x2b4], 5
je 0x58370f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
cmp dword [eax*4 + 0x11f040c], 5
jne 0x583723
mov eax, dword [ebp + 0x10]
mov al, byte [eax - 0x2b0]
add al, 0x30
mov edx, dword [ebp + 0x10]
mov byte [edx - 0x216], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x583776
lea eax, [ebp - 0x5d8]
mov edx, 0xb
call fcn.0040529c
lea eax, [ebp - 0x528]
mov edx, 2
call fcn.0040529c
lea eax, [ebp - 0x498]
call fcn.00405278
lea eax, [ebp - 0x394]
call fcn.00405278
lea eax, [ebp - 4]
call fcn.00405278
ret