Function at 0x4057e0
Capabilities:
Delete file
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
push ebx
push esi
push edi
lea eax, [ebp - 0x488]
mov dword [ebp - 4], ecx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x1ee
lea eax, [ebp - 0x260]
mov ecx, 7
mov esi, str.TWN_crash.zip
lea edi, [ebp - 0x27c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push 0
push 0x54b144
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x80
push 2
push 0
push 5
push 0xc0000000
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x28], esi
setne bl
test bl, bl
jne 0x405883
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 4]
mov dword [edi + 0x6c], eax
jmp 0x4059bc
push 0
push 1
push 0
push esi
call fcn.00405eb0
mov edi, dword [ebp - 4]
add esp, 0x10
mov esi, eax
test esi, esi
setne bl
test bl, bl
jne 0x4058ae
mov ecx, dword [0x5b3148]
mov dword [edi + 0x6c], ecx
jmp 0x405995
mov eax, dword [edi + 8]
mov ecx, 0x5b3144
test eax, eax
cmovne ecx, eax
test esi, esi
jne 0x4058c6
mov eax, 0x10000
jmp 0x4058e4
cmp dword [esi], 2
je 0x4058d2
mov eax, 0x80000
jmp 0x4058e4
push 2
push 0
push ecx
mov ecx, dword [esi + 4]
push str.TWN_crash.dmp
call fcn.00404ab0
mov ecx, eax
mov dword [0x5b3148], eax
test ecx, ecx
sete bl
test ecx, ecx
je 0x4058f7
mov dword [edi + 0x6c], eax
test bl, bl
je 0x405995
mov eax, dword [edi + 0x18]
mov ecx, 0x5b3144
test eax, eax
cmovne ecx, eax
test esi, esi
jne 0x405917
mov eax, 0x10000
jmp 0x405935
cmp dword [esi], 2
je 0x405923
mov eax, 0x80000
jmp 0x405935
push 2
push 0
push ecx
mov ecx, dword [esi + 4]
push str.dxdiag.xml
call fcn.00404ab0
mov ecx, eax
mov dword [0x5b3148], eax
test ecx, ecx
sete bl
test ecx, ecx
je 0x405948
mov dword [edi + 0x6c], eax
test bl, bl
je 0x405995
mov eax, dword [edi + 0x28]
mov ecx, 0x5b3144
test eax, eax
cmovne ecx, eax
test esi, esi
jne 0x405964
mov eax, 0x10000
jmp 0x405982
cmp dword [esi], 2
je 0x405970
mov eax, 0x80000
jmp 0x405982
push 2
push 0
push ecx
mov ecx, dword [esi + 4]
push 0x54a3a8
call fcn.00404ab0
mov ecx, eax
mov dword [0x5b3148], eax
test ecx, ecx
sete bl
test ecx, ecx
je 0x405995
mov dword [edi + 0x6c], eax
test esi, esi
je 0x4059a2
push esi
call fcn.00405610
add esp, 4
mov esi, dword [ebp - 0x28]
test bl, bl
je 0x4059bc
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x60], eax
cmp esi, 0xffffffff
je 0x4059c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x405c12
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00406130
mov eax, dword [ebp - 0x68]
mov esi, 0x5b3144
push dword [edi + 0x60]
test eax, eax
mov ecx, esi
cmovne ecx, eax
lea eax, [ebp - 0x60]
push ecx
push eax
mov ecx, edi
call fcn.004065e0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
add edi, 0x30
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0
push eax
push str.01_2.zip
mov dword [ebp - 0x28], edi
call fcn.00403f30
mov eax, dword [ebp - 0xc]
test eax, eax
mov ebx, dword [ebp - 4]
cmovne esi, eax
add ebx, 0x40
push esi
call fcn.00420e00
add esp, 4
mov ecx, ebx
push eax
push esi
call fcn.00403040
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
add eax, eax
push eax
push dword [ebp - 0xc]
call fcn.00420bb0
mov eax, dword [edi + 8]
mov esi, 0x5b3144
test eax, eax
mov ecx, esi
push 0x105
cmovne ecx, eax
lea eax, [ebp - 0x694]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0xc
lea eax, [ebp - 0x694]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [ebx + 8]
test eax, eax
mov dword [ebp - 0x50], 0
cmovne esi, eax
mov dword [ebp - 0x4c], 0
push esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x40]
push eax
push esi
call fcn.00403040
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00403040
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00433500
push dword [ebp - 0x28]
mov esi, dword [eax]
test esi, esi
sete bl
call fcn.00546a09
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
add esp, 0x10
mov dword [ebp - 0x28], 0
add eax, eax
push eax
push dword [ebp - 0xc]
call fcn.00420bb0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
add eax, eax
mov dword [ebp - 0x1c], 0
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.00420bb0
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call fcn.00420bb0
test esi, esi
je 0x405bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
add eax, eax
push eax
push dword [ebp - 0x58]
call fcn.00420bb0
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x64]
add eax, eax
mov dword [ebp - 0x58], 0
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.00420bb0
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret