Function at 0x4018b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f601
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push esi
push edi
mov eax, dword [0x4871a0]
xor eax, esp
push eax
lea eax, [esp + 0x4f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x401928
lea eax, [ebx + 6]
jmp 0x401b58
push 0x3ff
lea ecx, [esp + 0xe9]
push ebx
push ecx
mov dword [esp + 0x20], 4
mov byte [esp + 0xf0], bl
call fcn.00453e20
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
push 0x3ff
lea eax, [esp + 0xf0]
push eax
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40197c
mov dword [esp + 0x14], 6
jmp 0x401b4d
push ebx
lea ecx, [esp + 0x28]
call fcn.00434720
lea ecx, [esp + 0x54]
mov dword [esp + 0x4f8], ebx
call fcn.004392f0
mov byte [esp + 0x4f8], 1
mov edi, 0xf
lea eax, [esp + 0xe4]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019c0
sub eax, edx
push eax
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040e480
push 1
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x504], 2
call fcn.00439380
test al, al
sete byte [esp + 0x13]
mov byte [esp + 0x4f8], 1
cmp dword [esp + 0x50], 0x10
jb 0x401a1b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0044fccf
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp byte [esp + 0x13], bl
jne 0x401b30
push str.install
lea ecx, [esp + 0x28]
call fcn.004357f0
mov edi, eax
mov ecx, edi
call fcn.00435c30
mov ecx, edi
test al, al
je 0x401a5c
call fcn.004353c0
mov edx, dword [esp + 0x18]
mov byte [edx + 8], al
jmp 0x401a7c
call fcn.00435c50
test al, al
je 0x401b30
mov ecx, edi
call fcn.00434ea0
mov ecx, dword [esp + 0x18]
test eax, eax
setne al
mov byte [ecx + 8], al
mov edi, 0x10
mov dword [esp + 0x14], 1
cmp dword [esp + 0xdc], edi
jb 0x401aa2
mov edx, dword [esp + 0xc8]
push edx
call fcn.0044fccf
add esp, 4
mov esi, 0xf
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
cmp dword [esp + 0xac], edi
jb 0x401ad5
mov eax, dword [esp + 0x98]
push eax
call fcn.0044fccf
add esp, 4
mov dword [esp + 0xac], esi
lea esi, [esp + 0x74]
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00404110
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0044fccf
add esp, 4
lea esi, [esp + 0x54]
call fcn.004040b0
mov edx, dword [esp + 0x54]
push edx
call fcn.0044fccf
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x4f8], 0xffffffff
call fcn.00434c60
mov esi, dword [esp + 0x1c]
jmp 0x401b4d
lea edi, [esp + 0x54]
call fcn.00401f10
lea ecx, [esp + 0x24]
mov dword [esp + 0x4f8], 0xffffffff
call fcn.00434c60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d8]
xor ecx, esp
call fcn.0044fcda
mov esp, ebp
pop ebp
ret 8