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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 7
push connect
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [ebp - 8], edi
call fcn.00407fa0
push edi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 4], ebx
call fcn.00401027
add esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, 1
mov byte [0x424ed4], al
cmp byte [ebx], 0xd0
movzx eax, al
cmove eax, ecx
push 0x3000
push 0x400000
mov byte [0x424ed4], al
call fcn.00407d40
mov esi, eax
push 0x3000
push 0x104
mov dword [ebp - 0x1c], esi
call fcn.00407d40
push 0x3000
push 0x104
mov ebx, eax
call fcn.00407d40
xor edi, edi
mov dword [ebp + 8], eax
add esp, 0x18
xor dh, dh
cmp dword [ebp - 8], edi
jbe 0x410165
mov eax, 7
mov dword [ebp - 0x14], 9
sub eax, esi
lea ecx, [esi - 7]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov esi, ecx
mov dl, byte [edi + eax]
lea eax, [edx - 0x21]
cmp al, 0x5d
ja 0x41004b
cmp dl, 0x3d
je 0x41004b
mov byte [ecx + 7], dl
inc ecx
test dh, dh
jne 0x41001d
mov eax, dword [ebp - 0x10]
add eax, ecx
cmp eax, 7
jle 0x41004b
cmp byte [ecx], 0x41
jne 0x41004b
cmp byte [ecx + 1], 0x63
jne 0x41004b
cmp byte [ecx + 2], 0x63
jne 0x41004b
cmp byte [ecx + 3], 0x6f
jne 0x41004b
cmp byte [ecx + 4], 0x75
jne 0x41004b
cmp byte [ecx + 5], 0x6e
jne 0x41004b
cmp byte [ecx + 6], 0x74
jne 0x41004b
mov esi, dword [ebp - 4]
xor edx, edx
mov eax, 2
cmp byte [esi], 0xd0
cmovne eax, dword [ebp - 0x14]
add eax, edi
add esi, eax
mov al, byte [esi]
cmp al, 0x20
jbe 0x410015
cmp al, 0x7f
jae 0x410015
inc esi
mov byte [edx + ebx], al
inc edx
mov al, byte [esi]
cmp al, 0x20
ja 0x410006
mov byte [edx + ebx], 0
mov dh, 1
jmp 0x41004b
cmp byte [esi], 0x50
jne 0x41004b
cmp byte [ecx], 0x61
jne 0x41004b
cmp byte [ecx + 1], 0x73
jne 0x41004b
cmp byte [ecx + 2], 0x73
jne 0x41004b
cmp byte [ecx + 3], 0x77
jne 0x41004b
cmp byte [ecx + 4], 0x6f
jne 0x41004b
cmp byte [ecx + 5], 0x72
jne 0x41004b
cmp byte [ecx + 6], 0x64
je 0x410080
inc edi
cmp edi, dword [ebp - 8]
jb 0x40ff88
mov esi, dword [ebp + 8]
push ebx
call fcn.00407e60
push esi
call fcn.00407e60
push dword [ebp - 0x1c]
call fcn.00407e60
push dword [ebp - 4]
call fcn.00407fc0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
xor edx, edx
mov esi, 9
mov ecx, 2
cmp byte [eax], 0xd0
cmovne ecx, esi
mov esi, dword [ebp + 8]
add ecx, edi
add ecx, eax
mov al, byte [ecx]
cmp al, 0x20
jbe 0x4100b5
cmp al, 0x7f
jae 0x4100b5
cmp al, 0x21
je 0x4100b5
inc ecx
mov byte [edx + esi], al
inc edx
mov al, byte [ecx]
cmp al, 0x20
ja 0x4100a2
lea ecx, [ebp - 0x2c]
mov byte [edx + esi], 0
call fcn.0040c4c0
push esi
lea ecx, [ebp - 8]
call fcn.00402bb0
push ebx
lea ecx, [ebp + 8]
call fcn.00402bb0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.00402cb0
push eax
lea ecx, [ebp - 0x24]
call fcn.00403b40
lea ecx, [ebp - 0x14]
call fcn.00403ca0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00402cb0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403b40
lea ecx, [ebp - 0x14]
call fcn.00403ca0
push 0x41f3d8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 5
call fcn.004032c0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403b40
lea ecx, [ebp - 0x14]
call fcn.00403ca0
sub esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.004109d0
mov ecx, dword [ebp - 0x18]
call fcn.00410a10
lea ecx, [ebp + 8]
call fcn.00403280
lea ecx, [ebp - 8]
call fcn.00403280
lea ecx, [ebp - 0x2c]
call fcn.004026e0
jmp 0x410058
mov esi, eax
jmp 0x410058