Function at 0x4320af
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov eax, 0x472606
call fcn.0045454c
sub esp, 0x4b8
push ebx
push esi
push edi
mov al, byte [ebp + 0x33]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp + 8]
push eax
push ebx
push 0x3b
mov byte [ebp - 4], 1
call fcn.00424875
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x43215a
mov eax, dword [ebp - 0x18]
push 0x28
sub eax, ecx
pop esi
cdq
idiv esi
mov edi, 0x4765e0
mov esi, 0x4765d8
cmp eax, 3
jne 0x432144
lea eax, [ebp - 0xd]
push ebx
push eax
push 0x4947d8
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.004011a9
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.004277ed
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401093
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x43215a
mov eax, dword [ebp - 0x18]
push 0x28
sub eax, ecx
pop ebx
cdq
idiv ebx
cmp eax, 4
je 0x432162
xor ebx, ebx
push 0xfffffffffffffffc
pop esi
jmp 0x43239c
mov ecx, dword [ecx + 0x30]
xor ebx, ebx
cmp ecx, ebx
jne 0x432170
mov ecx, 0x4765fc
push ecx
call fcn.0045566b
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
pop ecx
mov eax, dword [eax + 0x58]
cmp eax, ebx
jne 0x432189
mov eax, 0x4765fc
push eax
call fcn.0045566b
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041145a
pop ecx
pop ecx
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 3
cmp eax, ebx
mov byte [ebp - 0xd], bl
jne 0x4321b3
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4322e9
lea eax, [ebp - 0xe]
push ebx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.0040190c
mov esi, 0x104
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.0040b1a5
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040afdf
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040b2ad
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x88]
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00403dc2
mov ecx, dword [ebp - 0x54]
mov eax, dword [eax]
cmp ecx, ebx
jne 0x43223d
mov ecx, 0x4765fc
push eax
push ebx
push 0x48e8dc
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00402ebf
lea eax, [ebp - 0x4c4]
push esi
push eax
push dword [0x498478]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4c4]
lea ecx, [ebp - 0x2bc]
push eax
call fcn.004334dd
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x43228d
mov eax, 0x476650
push ebx
push eax
push 0x48d570
lea ecx, [ebp - 0x2bc]
call fcn.00434224
cmp eax, 1
je 0x4322ca
cmp dword [ebp - 0x6c], ebx
mov esi, dword [0x476630]
je 0x4322bb
push dword [ebp - 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x6c], ebx
push esi
push ebx
lea ecx, [ebp - 0x84]
call fcn.0040599e
jmp 0x4322ce
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 4
call fcn.00433b1d
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401093
cmp dword [ebp - 0x7c], ebx
mov esi, 0x1b59
je 0x43234a
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x60]
push eax
call fcn.00411327
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.00411594
test eax, eax
jne 0x432326
mov esi, dword [0x498470]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00411437
jmp 0x43238d
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x78]
push ecx
lea ecx, [ebp - 0x60]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push eax
call fcn.00411bf3
lea ecx, [ebp - 0x60]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00411437
cmp byte [ebp - 0xd], bl
je 0x432362
mov eax, dword [ebp - 0x80]
cmp eax, ebx
jne 0x43235b
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x30], bl
je 0x43238d
lea ecx, [ebp - 0x2c]
call fcn.004020b2
push dword [0x498478]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004020e6
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004020df
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00402424
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004247dc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret