Function at 0x501fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xba
push 0
push 0
dec ecx
jne 0x501fc9
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.004055b8
xor eax, eax
push ebp
push 0x502688
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 0x50200e
mov byte [ebp - 0x15], 0xc
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x15]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.00501890
cmp byte [ebp - 0x44], 0xa1
jne 0x502038
cmp byte [ebp - 0x42], 8
je 0x502034
cmp byte [ebp - 0x42], 0
jne 0x502038
mov byte [ebp - 0x15], 0xc
mov byte [ebp - 9], 0
mov eax, 0x646094
xor ecx, ecx
mov edx, 0x200
call fcn.0040345c
mov eax, dword [ebp + 0x10]
add eax, 0xfffffd68
xor ecx, ecx
mov edx, 0x298
call fcn.0040345c
cmp byte [ebp - 0x44], 0xee
jne 0x50206b
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 0x5020d3
cmp byte [ebp - 0x42], 2
jne 0x5020d3
mov eax, dword [ebp + 0x10]
mov dword [eax - 0x288], 5
cmp byte [ebp + 8], 0
je 0x5020e6
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 0x502123
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 0x502489
mov edx, dword [ebp - 4]
mov eax, 0x5026a4
call fcn.0040570c
test eax, eax
jle 0x5023fb
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x26c], 0xf0
jne 0x5023fb
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x26a], 2
jne 0x5023fb
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
lea edx, [eax + 0x63fa34]
lea eax, [ebp - 0x51c]
call fcn.004032bc
mov edx, 0x5026ac
lea eax, [ebp - 0x51c]
mov cl, 0x86
call fcn.0040328c
lea edx, [ebp - 0x51c]
lea eax, [ebp - 0x494]
call fcn.0040536c
lea eax, [ebp - 0x494]
push eax
lea edx, [ebp - 0x520]
mov eax, dword [ebp - 0x24]
call fcn.0040a2d8
mov edx, dword [ebp - 0x520]
pop eax
call fcn.004053d0
mov edx, dword [ebp - 0x494]
lea eax, [ebp - 0x490]
mov ecx, 0xff
call fcn.004053a4
lea edx, [ebp - 0x490]
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0x63fa34
mov cl, 0x82
call fcn.004032c8
mov eax, dword [ebp + 0x10]
cmp byte [eax - 0x260], 4
jne 0x50231a
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
lea edx, [eax + 0x63fa34]
lea eax, [ebp - 0x5a8]
call fcn.004032bc
mov edx, 0x5026b4
lea eax, [ebp - 0x5a8]
mov cl, 0x83
call fcn.0040328c
lea edx, [ebp - 0x5a8]
lea eax, [ebp - 0x524]
call fcn.0040536c
lea eax, [ebp - 0x524]
push eax
lea edx, [ebp - 0x5ac]
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax - 0x25f]
call fcn.0040a2d8
mov edx, dword [ebp - 0x5ac]
pop eax
call fcn.004053d0
mov edx, dword [ebp - 0x524]
lea eax, [ebp - 0x490]
mov ecx, 0xff
call fcn.004053a4
lea edx, [ebp - 0x490]
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0x63fa34
mov cl, 0x82
call fcn.004032c8
mov eax, 0x1e8480
call fcn.0040347c
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
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x16], 0
cmp dword [ebp - 0x28], 0xffffffff
je 0x5023a0
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
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x16], al
cmp byte [ebp - 0x16], 0
je 0x5023c6
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0x63fa34
mov edx, 0x5026b8
mov cl, 0x82
call fcn.0040328c
jmp 0x5023e4
mov eax, dword [ebp + 0x10]
imul eax, dword [eax - 0x2ac], 0x83
add eax, 0x63fa34
mov edx, 0x5026bc
mov cl, 0x82
call fcn.0040328c
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 5
jle 0x502000
push 0x5026c8
push dword [ebp - 4]
push 0x5026d8
lea edx, [ebp - 0x5b4]
xor eax, eax
call fcn.0040a2d8
push dword [ebp - 0x5b4]
lea eax, [ebp - 0x5b0]
mov edx, 4
call fcn.00405488
mov eax, dword [ebp - 0x5b0]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
add ecx, 0x551c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x29c]
add eax, 0x5130
mov edx, 0x3e8
call fcn.0048e934
cmp byte [ebp + 0xc], 0
je 0x50246c
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00501abc
pop ecx
mov byte [ebp - 9], 1
mov eax, 0x5026ec
call fcn.0048cf1c
test al, al
je 0x502482
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x5024fd
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x14], eax
push 0x5026c8
push dword [ebp - 4]
push 0x5026d8
lea edx, [ebp - 0x5bc]
mov eax, dword [ebp - 0x14]
call fcn.0040a2d8
push dword [ebp - 0x5bc]
lea eax, [ebp - 0x5b8]
mov edx, 4
call fcn.00405488
mov eax, dword [ebp - 0x5b8]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
add ecx, 0x551c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x29c]
add eax, 0x5130
mov edx, 0x3e8
call fcn.0048e934
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00501abc
pop ecx
mov eax, 0x502704
call fcn.0048cf1c
test al, al
jne 0x502518
cmp byte [0x614170], 0
je 0x502606
push 0x502714
lea edx, [ebp - 0x5c8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
call fcn.0040a2d8
push dword [ebp - 0x5c8]
push 0x50272c
push dword [ebp - 4]
push 0x50272c
lea edx, [ebp - 0x5cc]
mov eax, dword [ebp - 0x14]
call fcn.0040a2d8
push dword [ebp - 0x5cc]
push 0x502738
lea edx, [ebp - 0x5d0]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2b0]
call fcn.0040a2d8
push dword [ebp - 0x5d0]
lea eax, [ebp - 0x5c4]
mov edx, 8
call fcn.00405488
mov eax, dword [ebp - 0x5c4]
push eax
lea edx, [ebp - 0x5d4]
xor eax, eax
call fcn.0048f87c
mov eax, dword [ebp - 0x5d4]
lea ecx, [ebp - 0x5c0]
pop edx
call fcn.0048cc9c
mov edx, dword [ebp - 0x5c0]
lea eax, [ebp - 0x390]
call fcn.00403090
mov edx, 1
lea eax, [ebp - 0x390]
call fcn.00403800
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0x29c]
mov ecx, dword [ecx + 0x551c]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax - 0x29c]
add edx, 0x5130
lea eax, [ebp - 0x390]
call fcn.00403214
lea eax, [ebp - 0x390]
call fcn.00403234
mov eax, 0x502744
call fcn.0048cf1c
test al, al
je 0x502647
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0x2b4], 5
je 0x502633
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0x2ac]
cmp dword [eax*4 + 0xbc29ac], 5
jne 0x502647
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 0x50268f
lea eax, [ebp - 0x5d4]
mov edx, 0xb
call fcn.0040512c
lea eax, [ebp - 0x524]
mov edx, 2
call fcn.0040512c
lea eax, [ebp - 0x494]
call fcn.00405108
lea eax, [ebp - 4]
call fcn.00405108
ret