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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470a5c
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x38]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.WindowsGA_NT.dat
lea ecx, [esp + 0x24]
mov dword [esp + 0x4d4], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x7f
lea ecx, [esp + 0x41]
push 0
push ecx
call sub.ntdll.dll_memset
push 0x400
lea edx, [esp + 0xcc]
push 0
push edx
call sub.ntdll.dll_memset
lea esi, [ebx + 0x5c]
mov ecx, 0x80
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x25c]
mov ecx, 0x80
lea edi, [esp + 0x254]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
call fcn.00459c90
test al, al
mov ecx, 0x80
lea edi, [esp + 0x43c]
je 0x45a25d
push str.UA_136152959_5
jmp 0x45a262
push str.UA_136152959_4
push 0x4e7924
call fcn.00457e90
mov eax, dword [esp + 0x2c]
mov esi, 8
add esp, 8
cmp dword [esp + 0x38], esi
jae 0x45a282
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], vtable.FileControl.0
jae 0x45a29f
lea eax, [esp + 0x24]
push 0
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.0045d880
test al, al
je 0x45a30f
push 0x480
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
mov esi, dword [esp + 0x1c]
jne 0x45a301
push 2
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x45a301
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x480
lea edx, [esp + 0x48]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45a328
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x4d0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x45a34d
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x4d0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret