Function at 0x4253c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4618a8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x425485
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, 7
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], cx
mov dword [ebp - 0x24], esi
mov word [ebp - 0x34], dx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
push str.Cannot_create_write_event._Error:
lea ecx, [ebp - 0x54]
call fcn.004074a0
mov ecx, eax
call fcn.00416ce0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00407130
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x425630
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [edi + 0x20]
push eax
push ecx
push edx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x58], esi
jne 0x425553
cmp eax, 0x3e5
je 0x425553
mov eax, 7
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], cx
mov dword [ebp - 0x24], esi
mov word [ebp - 0x34], dx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x60]
push eax
push str._Error:
lea ecx, [ebp - 0x58]
push ecx
push str.Write_to_device_failed._Return_code:
lea ecx, [ebp - 0x54]
call fcn.004074a0
mov esi, eax
call fcn.004072c0
mov ecx, eax
call fcn.004074a0
mov ecx, eax
call fcn.00416ce0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00407130
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp ebx, 0xffffffff
je 0x42554b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x425630
mov ecx, dword [edi + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4255bb
mov eax, 7
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x34], ax
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], dx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
push str.Timeout_occured_while_writing_to_heci_device.
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], eax
call fcn.004074a0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00407130
push ebx
mov ecx, edi
call fcn.00424120
jmp 0x42553f
mov eax, dword [edi + 0x20]
push esi
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, esi
jne 0x42561f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], eax
xor edx, edx
mov eax, 1
mov dword [ebp - 0x54], vtable.LogItem.0
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], cx
mov dword [ebp - 0x24], esi
mov word [ebp - 0x34], dx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
push str.Write_function_fail_to_finish._Error:
lea ecx, [ebp - 0x54]
jmp 0x42551e
mov esi, dword [ebp - 0x5c]
cmp ebx, 0xffffffff
je 0x42562e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret 8