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

Disassembly:
push 0x13c
mov eax, 0x4671ff
call fcn.0043fa79
mov esi, dword [ebp + 8]
and dword [ebp - 0x148], 0
cmp dword [ebp + 0x54], 0
mov dword [ebp - 4], 1
mov ebx, 0x104
jne 0x4350b5
push ebx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp + 0x40]
call fcn.00434584
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040763d
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00406b81
sub esp, 0x30
lea ecx, [ebp + 0x40]
push esp
call fcn.004076c9
call fcn.0043606e
add esp, 0x30
lea eax, [ebp - 0x131]
push 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004033a0
mov bl, byte [ebp + 0xc]
mov byte [ebp - 4], 3
xor edi, edi
test bl, bl
jne 0x435187
lea eax, [ebp - 0xa0]
push eax
call fcn.00434ae8
push eax
lea eax, [ebp - 0x100]
push 0x471914
push eax
mov byte [ebp - 4], 4
call fcn.0040854f
push 0x471910
push eax
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 5
call fcn.004084d2
add esp, 0x1c
push eax
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 6
call fcn.00406c1b
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00406bef
lea ecx, [ebp - 0xd0]
call fcn.00401500
lea ecx, [ebp - 0x130]
call fcn.00401500
lea ecx, [ebp - 0x100]
call fcn.00401500
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00401500
jmp 0x4351e9
push 0x104
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x40]
call fcn.00434584
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.0040763d
push dword [eax]
cmp dword [ebp + 0x58], 8
push edi
lea ecx, [ebp + 0x44]
cmovae ecx, dword [ebp + 0x44]
push 0x471918
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 3
call fcn.00406b81
test edi, edi
jne 0x4351e9
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x24], 0
jne 0x43526b
push 1
lea eax, [ebp - 0x131]
push eax
push 0x476700
lea ecx, [ebp - 0xd0]
call fcn.004065d0
push 1
lea eax, [ebp - 0x131]
push eax
push 0x471920
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004065d0
push dword [ebp - 0x5c]
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0042bf62
cmp eax, 0xffffffff
je 0x435257
lea ecx, [ebp - 0xd0]
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407c20
lea ecx, [ebp - 0x70]
call fcn.00401500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x43529d
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebp + 0x10]
push eax
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.004360a9
lea ecx, [ebp - 0xa0]
call fcn.00401500
test bl, bl
jne 0x4352d1
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.004076c9
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00406bef
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00401500
push 0xc
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.00433a41
add esp, 0x34
test al, al
je 0x43531a
inc edi
jns 0x4350f1
push 1
lea eax, [ebp - 0x131]
push eax
push 0x476700
mov ecx, esi
call fcn.004067e8
jmp 0x43535d
test bl, bl
jne 0x435343
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.0043606e
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov dword [esi], 0x47686c
mov dword [esi + 0x28], 0x46d060
call fcn.004064e5
lea ecx, [ebp - 0x40]
call fcn.00401500
lea ecx, [ebp + 0x10]
call fcn.00401500
lea ecx, [ebp + 0x40]
call fcn.00401500
mov eax, esi
call fcn.0043fa28
ret