Function at 0x4142d7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x50], ecx
push 0
push 0
push 3
push 0
push 7
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x414318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414756
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call fcn.00401000
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x10]
call fcn.0040132f
add esp, 0xc
and dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x42cc8d], 0
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + eax]
cmp eax, 0xd0
jne 0x414386
mov byte [0x42cc8d], 1
push 0x3000
push 0x400000
call fcn.0040b7f4
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
push 0x3000
push 0x104
call fcn.0040b7f4
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
push 0x3000
push 0x104
call fcn.0040b7f4
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
or dword [ebp - 0x5c], 0xffffffff
and dword [ebp - 8], 0
mov byte [ebp - 1], 0
and dword [ebp - 0x14], 0
jmp 0x4143db
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jae 0x414732
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cmp eax, 0x20
jle 0x41472d
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cmp eax, 0x7f
jge 0x41472d
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
movzx eax, byte [eax]
cmp eax, 0x3d
je 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x414542
cmp dword [ebp - 8], 7
jle 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 7]
cmp eax, 0x41
jne 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 6]
cmp eax, 0x63
jne 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 5]
cmp eax, 0x63
jne 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 4]
cmp eax, 0x6f
jne 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 3]
cmp eax, 0x75
jne 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 2]
cmp eax, 0x6e
jne 0x41453d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 1]
cmp eax, 0x74
jne 0x41453d
mov eax, dword [ebp - 0x14]
add eax, 9
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + eax]
cmp eax, 0xd0
jne 0x4144f0
mov eax, dword [ebp - 0x14]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
cmp eax, 0x20
jle 0x414530
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
cmp eax, 0x7f
jge 0x414530
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1c]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
jmp 0x4144f4
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov byte [eax], 0
mov byte [ebp - 1], 1
jmp 0x41472d
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 8]
cmp eax, 0x50
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 7]
cmp eax, 0x61
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 6]
cmp eax, 0x73
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 5]
cmp eax, 0x73
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 4]
cmp eax, 0x77
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 3]
cmp eax, 0x6f
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 2]
cmp eax, 0x72
jne 0x41472d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movsx eax, byte [eax - 1]
cmp eax, 0x64
jne 0x41472d
mov eax, dword [ebp - 0x14]
add eax, 9
mov dword [ebp - 0x18], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + eax]
cmp eax, 0xd0
jne 0x41460b
mov eax, dword [ebp - 0x14]
inc eax
inc eax
mov dword [ebp - 0x18], eax
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp eax, 0x20
jle 0x414659
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp eax, 0x7f
jge 0x414659
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
movzx eax, byte [eax]
cmp eax, 0x21
je 0x414659
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x18]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x41460f
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x2c]
mov byte [eax], 0
lea ecx, [ebp - 0x6c]
call fcn.00419976
push dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
call fcn.00406b58
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
call fcn.00406b58
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406770
push eax
lea ecx, [ebp - 0x64]
call fcn.00406bfc
lea ecx, [ebp - 0x44]
call fcn.00406be2
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.00406770
push eax
lea ecx, [ebp - 0x68]
call fcn.00406bfc
lea ecx, [ebp - 0x48]
call fcn.00406be2
mov dword [ebp - 0x60], 5
push 0x428db4
lea ecx, [ebp - 0x4c]
call fcn.00406f64
push eax
lea ecx, [ebp - 0x6c]
call fcn.00406bfc
lea ecx, [ebp - 0x4c]
call fcn.00406be2
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
sub esp, 0x10
mov ecx, esp
lea eax, [ebp - 0x6c]
push eax
call fcn.00403cd2
mov ecx, dword [ebp - 0x54]
call fcn.00403e71
lea ecx, [ebp - 0x38]
call fcn.00406b06
lea ecx, [ebp - 0x3c]
call fcn.00406b06
lea ecx, [ebp - 0x6c]
call fcn.004018bb
jmp 0x414732
jmp 0x4143d4
push dword [ebp - 0x30]
call fcn.0040b7df
pop ecx
push dword [ebp - 0x34]
call fcn.0040b7df
pop ecx
push dword [ebp - 0xc]
call fcn.0040b7df
pop ecx
push dword [ebp - 0x10]
call fcn.00401014
pop ecx
leave
ret 4