Function at 0x5adc18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xbf
push 0
push 0
dec ecx
jne 0x5adc21
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x48]
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.0040573c
xor eax, eax
push ebp
push 0x5ae447
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 - 0x48], 0xdf
jne 0x5adc67
mov byte [ebp - 0x15], 0xc
lea eax, [ebp - 0x398]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 0x29c]
call fcn.004054f0
mov eax, dword [ebp - 0x398]
push eax
lea eax, [ebp - 0x39c]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 0x29c]
add edx, 0x1a
call fcn.004054f0
mov eax, dword [ebp - 0x39c]
push eax
lea eax, [ebp - 0x3a0]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 0x29c]
add edx, 0x2f
call fcn.004054f0
mov eax, dword [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x15]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.005ad41c
cmp byte [ebp - 0x48], 0xa1
jne 0x5adce8
cmp byte [ebp - 0x46], 8
je 0x5adce4
cmp byte [ebp - 0x46], 0
jne 0x5adce8
mov byte [ebp - 0x15], 0xc
mov byte [ebp - 9], 0
mov eax, 0xcd543c
xor ecx, ecx
mov edx, 0x200
call fcn.00403464
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd68
xor ecx, ecx
mov edx, 0x298
call fcn.00403464
cmp byte [ebp - 0x48], 0xee
jne 0x5add1b
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 - 0x48], 0xd8
jne 0x5add83
cmp byte [ebp - 0x46], 2
jne 0x5add83
mov eax, dword [ebp + 0x10]
mov dword [eax - 0x288], 5
cmp byte [ebp + 8], 0
je 0x5add96
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 - 0x48]
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 0x5addd3
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 0x5ae201
mov edx, dword [ebp - 4]
mov eax, 0x5ae464
call fcn.00405890
test eax, eax
jle 0x5ae0fe
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x26c], 0xf0
jne 0x5ae0fe
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x26a], 2
jne 0x5ae0fe
push 0x5ae474
lea edx, [ebp - 0x3a8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.0040a78c
push dword [ebp - 0x3a8]
push 0x5ae48c
lea edx, [ebp - 0x3ac]
mov eax, dword [ebp - 0x24]
call fcn.0040a78c
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x3a4]
mov edx, 4
call fcn.0040560c
mov eax, dword [ebp - 0x3a4]
call fcn.004c938c
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
lea edx, [eax + 0xccd964]
lea eax, [ebp - 0x538]
call fcn.004032c4
mov edx, 0x5ae490
lea eax, [ebp - 0x538]
mov cl, 0x86
call fcn.00403294
lea edx, [ebp - 0x538]
lea eax, [ebp - 0x4b0]
call fcn.004054f0
lea eax, [ebp - 0x4b0]
push eax
lea edx, [ebp - 0x53c]
mov eax, dword [ebp - 0x24]
call fcn.0040a78c
mov edx, dword [ebp - 0x53c]
pop eax
call fcn.00405554
mov edx, dword [ebp - 0x4b0]
lea eax, [ebp - 0x4ac]
mov ecx, 0xff
call fcn.00405528
lea edx, [ebp - 0x4ac]
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xccd964
mov cl, 0x82
call fcn.004032d0
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x260], 4
jne 0x5ae01d
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
lea edx, [eax + 0xccd964]
lea eax, [ebp - 0x5c4]
call fcn.004032c4
mov edx, 0x5ae498
lea eax, [ebp - 0x5c4]
mov cl, 0x83
call fcn.00403294
lea edx, [ebp - 0x5c4]
lea eax, [ebp - 0x540]
call fcn.004054f0
lea eax, [ebp - 0x540]
push eax
lea edx, [ebp - 0x5c8]
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax - 0x25f]
call fcn.0040a78c
mov edx, dword [ebp - 0x5c8]
pop eax
call fcn.00405554
mov edx, dword [ebp - 0x540]
lea eax, [ebp - 0x4ac]
mov ecx, 0xff
call fcn.00405528
lea edx, [ebp - 0x4ac]
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xccd964
mov cl, 0x82
call fcn.004032d0
mov eax, 0x1e8480
call fcn.00403484
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 0x5ae0a3
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0x200
lea eax, [ebp - 0x248]
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 0x5ae0c9
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xccd964
mov edx, 0x5ae49c
mov cl, 0x82
call fcn.00403294
jmp 0x5ae0e7
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0xccd964
mov edx, 0x5ae4a0
mov cl, 0x82
call fcn.00403294
push 0x1f4
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 5
jle 0x5adc59
mov eax, 0x5ae4ac
call fcn.004c938c
lea eax, [ebp - 0x38]
call fcn.0040528c
xor eax, eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x38]
push 0x5ae4bc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx - 0x26c]
lea edx, [ebp - 0x5cc]
call fcn.0040a78c
push dword [ebp - 0x5cc]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040560c
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x10
jne 0x5ae115
lea eax, [ebp - 0x5d0]
mov ecx, dword [ebp - 0x38]
mov edx, 0x5ae4c8
call fcn.00405598
mov eax, dword [ebp - 0x5d0]
call fcn.004c938c
push 0x5ae4d8
push dword [ebp - 4]
push 0x5ae4e8
lea edx, [ebp - 0x5d8]
xor eax, eax
call fcn.0040a78c
push dword [ebp - 0x5d8]
lea eax, [ebp - 0x5d4]
mov edx, 4
call fcn.0040560c
mov eax, dword [ebp - 0x5d4]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
add ecx, 0x57dc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x29c]
add eax, 0x53f0
mov edx, 0x3e8
call fcn.004c1f3c
cmp byte [ebp + 0xc], 0
je 0x5ae1e1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.005ad714
pop ecx
mov byte [ebp - 9], 1
mov eax, 0x5ae4fc
call fcn.004be23c
test al, al
je 0x5ae1f7
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x5ae2a4
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
push 0x5ae4d8
push dword [ebp - 4]
push 0x5ae4e8
lea edx, [ebp - 0x5e0]
mov eax, dword [ebp - 0x14]
call fcn.0040a78c
push dword [ebp - 0x5e0]
lea eax, [ebp - 0x5dc]
mov edx, 4
call fcn.0040560c
mov eax, dword [ebp - 0x5dc]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
add ecx, 0x57dc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x29c]
add eax, 0x53f0
mov edx, 0x3e8
call fcn.004c1f3c
lea edx, [ebp - 0x5e8]
mov eax, dword [ebp - 0x14]
call fcn.0040a78c
mov ecx, dword [ebp - 0x5e8]
lea eax, [ebp - 0x5e4]
mov edx, 0x5ae514
call fcn.00405598
mov eax, dword [ebp - 0x5e4]
call fcn.004c938c
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.005ad714
pop ecx
mov eax, 0x5ae524
call fcn.004be23c
test al, al
jne 0x5ae2bf
cmp byte [0x889874], 0
je 0x5ae3ad
push 0x5ae534
lea edx, [ebp - 0x5f4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.0040a78c
push dword [ebp - 0x5f4]
push 0x5ae54c
push dword [ebp - 4]
push 0x5ae54c
lea edx, [ebp - 0x5f8]
mov eax, dword [ebp - 0x14]
call fcn.0040a78c
push dword [ebp - 0x5f8]
push 0x5ae558
lea edx, [ebp - 0x5fc]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2b0]
call fcn.0040a78c
push dword [ebp - 0x5fc]
lea eax, [ebp - 0x5f0]
mov edx, 8
call fcn.0040560c
mov eax, dword [ebp - 0x5f0]
push eax
lea edx, [ebp - 0x600]
xor eax, eax
call fcn.004c3988
mov eax, dword [ebp - 0x600]
lea ecx, [ebp - 0x5ec]
pop edx
call fcn.004bdd94
mov edx, dword [ebp - 0x5ec]
lea eax, [ebp - 0x394]
call fcn.00403098
mov edx, 1
lea eax, [ebp - 0x394]
call fcn.00403808
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
mov ecx, dword [ecx + 0x57dc]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax - 0x29c]
add edx, 0x53f0
lea eax, [ebp - 0x394]
call fcn.0040321c
lea eax, [ebp - 0x394]
call fcn.0040323c
mov eax, 0x5ae564
call fcn.004be23c
test al, al
je 0x5ae3ee
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0x2b4], 5
je 0x5ae3da
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
cmp dword [eax*4 + 0x139470c], 5
jne 0x5ae3ee
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 0x5ae44e
lea eax, [ebp - 0x600]
mov edx, 0xf
call fcn.004052b0
lea eax, [ebp - 0x540]
mov edx, 2
call fcn.004052b0
lea eax, [ebp - 0x4b0]
call fcn.0040528c
lea eax, [ebp - 0x3ac]
mov edx, 6
call fcn.004052b0
lea eax, [ebp - 0x38]
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.0040528c
ret