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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
push ebx
push esi
push edi
lea edi, [ebp - 0x1e8]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x198], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x197]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, esp
push 0x104
lea eax, [ebp - 0x198]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, esp
call fcn.00405210
mov esi, esp
push 0
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp esi, esp
call fcn.00405210
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0xffffffff
je 0x401a7c
mov esi, esp
push 0
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.00405210
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 1
mov esi, esp
push ecx
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00405210
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.00405210
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x1a0]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x94]
push eax
call fcn.00405430
add esp, 0xc
mov esi, esp
push 0
lea ecx, [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00405210
test eax, eax
je 0x401a7c
mov edx, dword [ebp - 0x1a0]
sub edx, 1
mov dword [ebp - 0x1a4], edx
jmp 0x401916
mov eax, dword [ebp - 0x1a4]
sub eax, 1
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jle 0x401971
mov ecx, dword [ebp - 0x94]
add ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
test edx, edx
jne 0x40193a
cmp dword [ebp - 4], 0
jne 0x40193a
jmp 0x401907
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x1a4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x401954
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x94]
add edx, dword [ebp - 0x1a4]
movsx eax, byte [edx]
test eax, eax
jne 0x40196f
cmp dword [ebp - 4], 1
jne 0x40196f
jmp 0x401971
jmp 0x401907
mov ecx, dword [ebp - 0x1a4]
add ecx, 1
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a8], 0
jmp 0x40199b
mov edx, dword [ebp - 0x1a8]
add edx, 1
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1a0]
sub eax, dword [ebp - 0x1a4]
cmp dword [ebp - 0x1a8], eax
jge 0x4019fe
mov ecx, dword [ebp - 0x94]
add ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
cmp edx, 0x7c
jne 0x4019d4
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
jmp 0x4019fe
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x94]
add edx, dword [ebp - 0x1a4]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1a4]
add ecx, 1
mov dword [ebp - 0x1a4], ecx
jmp 0x40198c
mov dword [ebp - 0x1a8], 0
jmp 0x401a19
mov edx, dword [ebp - 0x1a8]
add edx, 1
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1a0]
sub eax, dword [ebp - 0x1a4]
cmp dword [ebp - 0x1a8], eax
jge 0x401a6c
mov ecx, dword [ebp - 0x94]
add ecx, dword [ebp - 0x1a4]
movsx edx, byte [ecx]
test edx, edx
jne 0x401a42
jmp 0x401a6c
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0x94]
add ecx, dword [ebp - 0x1a4]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
jmp 0x401a0a
cmp dword [ebp - 0x1a8], 0
jle 0x401a7c
mov eax, 1
jmp 0x401a7e
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1e8
cmp ebp, esp
call fcn.00405210
mov esp, ebp
pop ebp
ret