Function at 0x4044b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov edx, ecx
push edi
mov dword [ebp - 4], edx
mov eax, dword [section..data]
mov ebx, dword [ebp + 0xc]
cmp eax, section..data
je 0x4044ed
test byte [eax + 0x1c], 2
je 0x4044ed
push ebx
push edx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2f
pop ecx
call fcn.004035d4
mov eax, dword [section..data]
mov edx, dword [ebp - 4]
cmp ebx, 0x28
jae 0x404527
mov edi, 0x401630
cmp eax, section..data
je 0x40451a
test byte [eax + 0x1c], 1
je 0x40451a
push ebx
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0x30
pop ecx
call fcn.004028a0
mov eax, dword [section..data]
mov ebx, dword [ebp - 4]
mov esi, 0x80070057
jmp 0x40465b
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x18]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
mov dword [ecx], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push ecx
push dword [edx + 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov edi, 0x401630
test eax, eax
jne 0x404604
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
je 0x4045b2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40457d
movzx esi, si
or esi, 0x80070000
mov eax, dword [section..data]
cmp eax, section..data
je 0x4045a5
test byte [eax + 0x1c], 1
je 0x4045a5
push esi
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0x31
pop ecx
call fcn.004028a0
mov eax, dword [section..data]
mov ebx, dword [ebp - 4]
test esi, esi
js 0x40465b
jmp 0x404607
mov ebx, dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x404607
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4045da
movzx esi, si
or esi, 0x80070000
mov eax, dword [section..data]
cmp eax, section..data
je 0x4045a8
test byte [eax + 0x1c], 1
je 0x4045a8
push esi
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0x32
pop ecx
call fcn.004028a0
mov eax, dword [section..data]
jmp 0x4045a8
mov ebx, dword [ebp - 4]
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
test eax, eax
jne 0x404656
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404633
movzx esi, si
or esi, 0x80070000
mov eax, dword [section..data]
cmp eax, section..data
je 0x40467a
test byte [eax + 0x1c], 1
je 0x40465b
push esi
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0x33
pop ecx
call fcn.004028a0
mov eax, dword [section..data]
cmp eax, section..data
je 0x40467a
test byte [eax + 0x1c], 2
je 0x40467a
push esi
push ebx
push dword [eax + 0x14]
mov edx, edi
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.004036d2
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8