Function at 0x44a47d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x47012c
call fcn.0045b030
sub esp, 0x58
push ebx
push esi
push edi
mov edi, ecx
call fcn.0044a012
test eax, eax
je 0x44a4d8
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi + 0x18]
push ebx
push 0x80
push 2
pop esi
mov dword [ebp - 4], ebx
push esi
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x44a4c7
call fcn.00445799
jmp 0x44a4cc
mov dword [ebp - 0x10], eax
xor eax, eax
cmp eax, ebx
je 0x44a4df
lea ecx, [ebp - 0x10]
call fcn.004457ae
xor eax, eax
jmp 0x44a6b9
mov eax, dword [edi + 0xc]
push ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push 0x10
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x40], 0x4c573351
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x44a50f
call fcn.00445799
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x44a67a
mov eax, dword [0x4802e0]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov esi, dword [eax]
cmp esi, eax
je 0x44a563
push dword [esi + 0x14]
lea eax, [ebp - 0x14]
push dword [esi + 0x10]
push dword [esi + 8]
push str._d_s_s
push eax
call fcn.00402b82
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [esi]
add esp, 0x14
mov eax, dword [eax - 8]
cmp esi, dword [edi + 8]
lea eax, [ecx + eax + 5]
mov dword [ebp - 0x1c], eax
jne 0x44a532
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 0x30], esi
je 0x44a643
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [edi + 8]
add esp, 0xc
mov esi, dword [eax]
cmp esi, eax
je 0x44a640
push dword [esi + 0x14]
lea eax, [ebp - 0x14]
push dword [esi + 0x10]
push dword [esi + 8]
push str._d_s_s
push eax
call fcn.00402b82
mov eax, dword [ebp - 0x14]
push 4
mov eax, dword [eax - 8]
add eax, 5
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], 4
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x44a5dc
xor ecx, ecx
jmp 0x44a614
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x24], eax
add eax, 3
and al, 0xfc
call fcn.0045b070
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x28]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
inc eax
push eax
push ecx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [esi]
add esp, 0xc
mov eax, dword [eax - 8]
cmp esi, dword [edi + 8]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x18], eax
jne 0x44a596
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x1c]
push 0x4c573351
push esi
call fcn.00432f1a
add esp, 0xc
lea eax, [ebp - 0x30]
push ebx
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x44a66f
call fcn.00445799
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00403037
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44a68d
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x44a6ac
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x20], eax
cmp dword [ebp - 0x10], ebx
je 0x44a6b6
push dword [ebp - 0x10]
call esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret