Function at 0x415880
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x20]
call fcn.00405de0
push eax
lea ecx, [esp + 0x3c]
call fcn.00413570
mov eax, dword [esp + 0x80]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
mov dword [esp + 0x94], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415a8f
lea ecx, [esp + 0xc]
push ebx
push ecx
lea edx, [esp + 0x18]
push 0x10
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415a61
cmp dword [esp + 0xc], 0x10
jne 0x415a61
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov dword [esi + 0xfc], eax
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x415a61
lea ecx, [esp + 0x58]
call fcn.00413530
mov dword [esp + 0x50], 0x4207f4
mov word [esp + 0x54], bx
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 1
call fcn.00413530
mov eax, dword [esp + 0x18]
mov byte [esp + 0x78], 2
cmp ax, 0x100
jb 0x415980
mov ecx, dword [esi + 0x24]
push ebx
push str.DriverErrors
push ecx
lea ecx, [esp + 0x5c]
call fcn.00405d20
test eax, eax
je 0x41597c
mov edx, dword [esp + 0x18]
and edx, 0xffff
sub edx, 0x100
push edx
jmp 0x4159ad
mov eax, dword [esp + 0x18]
cmp ax, bx
jbe 0x4159c0
cmp ax, 0x100
jae 0x4159c0
mov eax, dword [esi + 0x24]
push ebx
push str.SchedDosErrors
push eax
lea ecx, [esp + 0x5c]
call fcn.00405d20
test eax, eax
je 0x4159c0
mov ecx, dword [esp + 0x18]
and ecx, 0xffff
push ecx
lea ecx, [esp + 0x54]
call fcn.00405de0
push eax
lea ecx, [esp + 0x24]
call fcn.00413b00
lea ecx, [esp + 0x20]
call fcn.00413a00
test eax, eax
jne 0x415a46
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jne 0x4159e1
mov ecx, 0x4207f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x4159ee
mov eax, 0x4207f0
mov edx, dword [esp + 0x84]
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x78], 1
call fcn.004138f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], bl
call fcn.00405cc0
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.004138f0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 1
call fcn.004138f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], bl
call fcn.00405cc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.004138f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [esp + 0x84]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1100
mov dword [esp + 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x415a68
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x415ac9
mov eax, 0x4207f0
mov edx, dword [esp + 0x84]
mov ecx, dword [esi + 4]
push edx
push eax
mov eax, dword [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x80]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.004138f0
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 8