Function at 0x402110
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x50c]
lea esi, [ebp - 0x818]
push ebx
lea ebx, [ebp - 0x714]
sub esp, 0x834
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov edx, dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 8
mov dword [esp + 0xc], esi
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x406000
mov dword [ebp - 0x81c], edx
call edx
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x406000
mov edx, dword [ebp - 0x81c]
call edx
lea eax, [ebp - 0x610]
sub esp, 0x10
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x406000
mov edx, dword [ebp - 0x81c]
call edx
mov edx, dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [ebp - 0x820], edx
call edx
mov ecx, dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x1c
mov edi, eax
lea eax, [ebp - 0x214]
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
mov dword [esp + 4], str.ab_nbd
mov dword [ebp - 0x824], ecx
call ecx
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 0x14
mov dword [esp], edi
mov dword [ebp - 0x81c], eax
call eax
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov edx, dword [ebp - 0x820]
call edx
lea ecx, [ebp - 0x214]
sub esp, 0x1c
mov edi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 5
mov dword [esp + 4], str.ab_nbd
mov dword [esp], eax
mov ecx, dword [ebp - 0x824]
call ecx
sub esp, 0x14
mov dword [esp], edi
mov eax, dword [ebp - 0x81c]
call eax
lea ecx, [ebp - 0x610]
sub esp, 4
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x214]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], ecx
mov dword [esp + 4], str._b__C:doesnotexist1__hs_C:doesnotexist1__hs_C:doesnotexist1__hs
call dword [sym.imp.user32.dll_wsprintfW]
lea ecx, [ebp - 0x610]
mov dword [esp + 0x18], 0
mov dword [esp], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov edx, dword [ebp - 0x820]
call edx
mov edi, dword [sym.imp.user32.dll_CharUpperA]
sub esp, 0x1c
mov dword [ebp - 0x820], eax
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp], ebx
call edi
lea ecx, [ebp - 0x610]
sub esp, 4
mov dword [esp], ecx
call edi
lea ecx, [ebp - 0x610]
lea edi, [ebp - 0x408]
sub esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], str.File_not_found___C:DOESNOTEXIST1_r_n_r_n____________s_r_nab_r_nbd_r_nFile_not_found___C:DOESNOTEXIST1_r_n_r_n____________s_r_nab_r_nbd_r_nFile_not_found___C:DOESNOTEXIST1_r_nFile_not_found____s_r_n
call dword [sym.imp.user32.dll_wsprintfA]
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], edi
lea edi, [ebp - 0x214]
xor ecx, ecx
mov dword [esp + 4], eax
mov edx, section..rdata
mov eax, edi
mov dword [esp + 0xc], 0x132
mov dword [esp + 8], 0
call fcn.004016e0
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
mov eax, dword [ebp - 0x81c]
call eax
sub esp, 4
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x610]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret