Function at 0x44d770
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x599af0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6204e0]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov edi, dword [esp + 0x454]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push str._tmp__d.tmp
mov dword [esp + 0x450], ebx
call fcn.004408a0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040c6e0
mov ebp, 0x10
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x44d7ea
mov esi, dword [eax + 4]
jmp 0x44d7ed
lea esi, [eax + 4]
call sub.MSVCR90.dll_rand
push eax
lea ecx, [esp + 0x5c]
push esi
push ecx
call sub.MSVCR90.dll_sprintf
add esp, 0xc
cmp dword [esp + 0x34], ebp
jb 0x44d814
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 0xf
lea eax, [esp + 0x58]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d830
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.0040bad0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edi
push edx
mov byte [esp + 0x458], 1
call fcn.0040c7a0
lea ecx, [esp + 0x20]
push ecx
push eax
mov byte [esp + 0x460], 2
call fcn.0043d560
add esp, 0x14
cmp dword [esp + 0x34], ebp
jb 0x44d889
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
mov byte [esp + 0x44c], 0
cmp dword [esp + 0x54], ebp
jb 0x44d8b1
mov eax, dword [esp + 0x40]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44d91f
lea edx, [esp + 0x1c]
push edx
call fcn.0042a4c0
add esp, 4
push edi
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x458], 3
call fcn.0040b880
cmp dword [esp + 0x34], ebp
jb 0x44d907
mov eax, dword [esp + 0x20]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x44d918
push eax
call sub.MSVCR90.dll_free
add esp, 4
xor al, al
jmp 0x44d9c9
mov eax, str.test_data
xor bl, bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d930
push 0
sub eax, edx
lea ecx, [esp + 0x3c]
push ecx
mov esi, eax
push esi
push str.test_data
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44d959
cmp dword [esp + 0x38], esi
je 0x44d992
lea edx, [esp + 0x1c]
push edx
mov bl, 1
call fcn.0042a4c0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x458], 4
call fcn.0040b880
cmp dword [esp + 0x34], ebp
jb 0x44d992
mov eax, dword [esp + 0x20]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
test eax, eax
jne 0x44d9b1
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x14]
test bl, bl
sete bl
test eax, eax
je 0x44d9c7
push eax
call sub.MSVCR90.dll_free
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x43c
ret