Function at 0x401b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x40c0cc]
xor eax, dword [ebp + 4]
or byte [ebp - 0x24], 0xff
or byte [ebp - 0x23], 0xff
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x25c]
push eax
push ebx
mov byte [ebp - 0x30], 0x4d
mov byte [ebp - 0x2f], 0x5a
mov byte [ebp - 0x2e], 0x90
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], 3
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], 0xb8
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], 0x40
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x401ca9
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401c9b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov esi, 0x200
push ebx
push esi
mov dword [ebp - 0xc], esi
push eax
jmp 0x401c2b
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x20
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401c8f
cmp dword [ebp - 0x34], 0x20
jne 0x401c8f
push 0x20
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402870
add esp, 0xc
test eax, eax
push ebx
push ebx
je 0x401c34
add dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call edi
cmp eax, 0xffffffff
jne 0x401be1
jmp 0x401c8f
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c69
push ebx
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004010d6
add esp, 0x10
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov esi, 0x40cc40
push str.Failed_to_open_file__s_for_writing:_error_code__d
push esi
mov dword [ebp - 8], eax
call fcn.004025e1
push esi
call fcn.00401165
add esp, 0x14
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x401ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_read_current_module_file:_error_code__d
jmp 0x401cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_current_module_filename:_error_code__d
mov esi, 0x40cc40
push esi
mov dword [ebp - 8], eax
call fcn.004025e1
push esi
call fcn.00401165
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 8]
pop esi
pop ebx
call fcn.004025c0
leave
ret