Function at 0x414f90
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x38], 0
mov eax, dword [edi]
test eax, eax
je 0x4150b0
lea eax, [esp + 0x38]
mov dword [esp + 4], 0x20
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00427280
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
jne 0x415150
xor edx, edx
test esi, 2
mov eax, dword [esp + 0x38]
setne dl
add edx, edx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax], 0
mov dword [eax + 4], edx
test esi, 0x10
je 0x415024
or dword [eax + 4], 0x10
test esi, 0x40
jne 0x4150a0
mov edx, dword [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [edi]
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
jne 0x4151d4
and esi, 0x20
mov eax, dword [esp + 0x38]
je 0x41508b
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [0x4aae40]
mov esi, eax
mov eax, edx
or eax, esi
jne 0x415213
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov edx, ebp
mov dword [ecx], eax
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
or dword [eax + 4], 0x40
jmp 0x41502c
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebp, 1
call ebx
mov dword [esp + 8], 0x4aa8ca
mov dword [esp + 4], str.__s__No_init_operation_defined_in_supplied_device_operations.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4aa8c7
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov ebx, 3
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x38]
test eax, eax
je 0x415133
lea edx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [esp + 0x6c]
mov edx, ebp
mov dword [eax], 0
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
mov edi, eax
call esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0x4aa8ca
mov dword [esp + 4], str.__s__Error_while_allocating__Iu_bytes_for_device_struct:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4aa8c7
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x41511b
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4aa8ca
mov dword [esp + 4], str.__s__Error_while_initializing_device_implementation:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x415195
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4aa8ca
mov dword [esp + 4], str.__s__Error_while_initializing_shadow_I_O_layer:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4aa8c7
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov ebx, esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
mov ebp, edx
jmp 0x41511b