Function at 0x446618
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x468849
call fcn.0043540c
sub esp, 0x184
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
cmp dword [ebp + 0x44], 0
mov dword [ebp - 4], 2
mov ebx, 0x104
jne 0x446672
lea eax, [ebp - 0x50]
push ebx
push eax
lea ecx, [ebp + 0x38]
call fcn.004024ea
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00402b77
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004025fc
sub esp, 0x28
lea ecx, [ebp + 0x38]
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00404d89
call fcn.004475a6
add esp, 0x28
lea eax, [ebp - 0x13]
mov edi, 0x46b5c0
mov esi, 0x46b5b8
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], esi
call fcn.00402b02
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
cmp byte [ebp + 0xc], 0
jne 0x446755
lea eax, [ebp - 0xf0]
push eax
call fcn.00446212
push eax
lea eax, [ebp - 0x168]
push 0x484bdc
push eax
mov byte [ebp - 4], 5
call fcn.004223b9
push 0x47e058
push eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 6
push eax
call fcn.004166f2
add esp, 0x1c
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 7
call fcn.0040e137
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.004020f3
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.00402079
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
call fcn.00402079
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 5
call fcn.00402079
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00402079
jmp 0x4467b4
lea eax, [ebp - 0x50]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.004024ea
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.00402b77
mov ecx, dword [ebp + 0x40]
mov eax, dword [eax]
test ecx, ecx
jne 0x44677f
mov ecx, 0x46b5e8
push eax
push dword [ebp - 0x10]
push 0x480e6c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.004025fc
cmp dword [ebp - 0x10], 0
jne 0x4467b4
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4467ad
mov eax, 0x46b5e8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x1c], 0
jne 0x446816
lea eax, [ebp - 0x12]
push 1
push eax
push 0x486618
lea ecx, [ebp - 0xa0]
call fcn.00403d1a
lea eax, [ebp - 0x11]
push 1
push eax
push str..tmp
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00403d1a
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403ddf
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00402079
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
jmp 0x446843
sub esp, 0x28
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x44]
push eax
call fcn.0044ce73
lea ecx, [ebp - 0x140]
call fcn.00402079
cmp byte [ebp + 0xc], 0
jne 0x446879
lea eax, [ebp - 0x190]
lea ecx, [ebp - 0x44]
push eax
call fcn.00404d89
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.004020f3
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 4
call fcn.00402079
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
call fcn.00445435
add esp, 0x28
test al, al
je 0x4468f4
inc dword [ebp - 0x10]
jns 0x4466b1
mov ecx, dword [ebp + 8]
push 1
pop esi
lea eax, [ebp + 0xf]
push esi
push eax
push 0x486618
call fcn.00408d5f
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00402079
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00402079
and byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.00402079
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp byte [ebp + 0xc], 0
jne 0x44691a
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp + 0xc], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c87
call fcn.004475a6
add esp, 0x28
mov ecx, dword [ebp + 8]
push 1
pop esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0040e1c2
mov dword [ebp - 0x18], esi
jmp 0x4468be