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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x214]
push ebx
sub esp, 0x238
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
sub esp, 8
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x214]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x597fe6
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [ebp - 0x214]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
test eax, eax
je 0x45c253
cmp byte [ebp + eax - 0x215], 0x5c
je 0x45caac
xor ebx, ebx
mov edi, dword fs:[0x18]
lea esi, [esi]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xdeadbeef
lea eax, [ebp - 0x214]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10a3
xor eax, eax
cmp esi, 0xffffffff
sete al
mov dword [esp + 4], str.CreateFile_should_fail_n
mov dword [esp], eax
call fcn.0045bef0
mov eax, 0x21
mov ecx, ebx
shr eax, cl
and eax, 1
mov esi, eax
je 0x45c8b8
xor esi, esi
cmp ebx, 5
je 0x45ca80
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
or edx, esi
mov dword [eax + 0x10], edx
mov esi, dword fs:[0x18]
jmp 0x45c35e
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10a8
mov eax, dword [esi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], 0x598004
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x45c320
lea eax, [ebp - 0x214]
mov esi, dword fs:[0x18]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10b3
xor eax, eax
mov dword [esp + 4], str.CreateFile_should_fail_n
cmp dword [ebp - 0x21c], 0xffffffff
sete al
mov dword [esp], eax
call fcn.0045bef0
test ebx, ebx
je 0x45c940
xor esi, esi
cmp ebx, 1
je 0x45ca68
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
or edx, esi
mov dword [eax + 0x10], edx
mov esi, dword fs:[0x18]
jmp 0x45c466
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10ba
mov eax, dword [esi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], 0x598034
cmp dword [esi + 0x34], 5
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x45c428
add ebx, 1
cmp ebx, 6
jne 0x45c260
mov edi, 0x59ec68
xor ebx, ebx
mov esi, edi
mov edi, ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x228], eax
jmp 0x45c4af
add edi, 1
add esi, 0x10
cmp edi, 0x1b
je 0x45c5de
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov edx, dword [esi - 8]
mov eax, dword [esi - 4]
mov dword [ebp - 0x224], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [ebp - 0x220], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x110]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x220]
sub esp, 0x1c
mov dword [ebp - 0x21c], eax
test ecx, ecx
je 0x45c600
cmp edx, 5
jne 0x45c534
test dword [ebp - 0x224], 0x40000000
je 0x45c988
mov dword [ebp - 0x220], ecx
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10eb
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._ld:_CreateFile_should_fail_n
cmp dword [ebp - 0x21c], 0xffffffff
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10ec
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x220]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str._ld:_expected__ld__got__ld_n
cmp dword [eax + 0x34], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [esi + 4]
test eax, eax
je 0x45c4a0
lea eax, [ebp - 0x110]
add edi, 1
add esi, 0x10
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
cmp edi, 0x1b
jne 0x45c4af
lea eax, [ebp - 0x110]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10c4
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._ld:_CreateFile_error__ld_n
cmp dword [ebp - 0x21c], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 0x220], eax
sub esp, 0x14
test dword [ebp - 0x224], 0x40000000
jne 0x45c810
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10cc
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._ld:_WriteFile_should_fail_n
mov edx, dword [ebp - 0x220]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10cd
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], 0x598034
cmp dword [ebx + 0x34], 5
sete al
mov dword [esp], eax
call fcn.0045bef0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFileTime]
mov ecx, dword [0x8f0770]
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x220]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x45c7db
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10d7
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str._ld:_SetFileTime_should_fail_n
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10d8
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], 0x598034
cmp dword [ebx + 0x34], 5
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x45c770
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x45c5b2
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10c9
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._ld:_WriteFile_error__ld_n
mov ecx, dword [ebp - 0x220]
mov dword [esp], ecx
call fcn.0045bef0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFileTime]
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10d2
mov eax, dword [ebx + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._ld:_SetFileTime_error__ld_n
mov edx, dword [ebp - 0x220]
mov dword [esp], edx
call fcn.0045bef0
jmp 0x45c7f4
cmp ebx, 1
je 0x45ca98
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
or edx, esi
mov dword [eax + 0x10], edx
jmp 0x45c91e
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10ae
mov eax, dword [edi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], 0x598034
cmp dword [edi + 0x34], 5
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x45c8e0
jmp 0x45c371
call fcn.0057d110
mov ebx, 1
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10b5
mov eax, dword [esi + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], 0x598004
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.0045bef0
jmp 0x45c260
mov ebx, dword [0x8f0770]
mov dword [ebp - 0x220], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
test ebx, ebx
mov dword [eax + 0x14], 1
setne bl
movzx ebx, bl
lea edx, [ecx + ecx]
or edx, ebx
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x220], esi
mov dword [eax + 0x10], edx
mov esi, dword [ebp - 0x228]
jmp 0x45ca43
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10e4
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._ld:_CreateFile_should_fail_n
cmp dword [ebp - 0x21c], 0xffffffff
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x10e5
mov eax, dword [esi + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._ld:_expected__ld__got__ld_n
cmp dword [esi + 0x34], ebx
sete al
mov dword [esp], eax
call fcn.0045bef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x45c9d0
mov esi, dword [ebp - 0x220]
jmp 0x45c7f4
mov ecx, dword [0x8f0770]
xor eax, eax
test ecx, ecx
setne al
mov esi, eax
jmp 0x45c404
mov edx, dword [0x8f0770]
xor eax, eax
test edx, edx
setne al
mov esi, eax
jmp 0x45c2f6
mov esi, dword [0x8f0770]
xor eax, eax
test esi, esi
setne al
mov esi, eax
jmp 0x45c8c1
mov byte [ebp + eax - 0x215], 0
jmp 0x45c253