Function at 0x4b2a30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6234ab
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00402244
test eax, eax
ja 0x4b2a71
xor al, al
jmp 0x4b2dcd
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xc8
je 0x4b2da8
mov ecx, dword [ebp + 0xc]
call fcn.00402244
test eax, eax
jbe 0x4b2ae0
mov ecx, dword [ebp + 0xc]
call fcn.004026d7
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4b2abe
mov ecx, dword [ebp + 0xc]
call fcn.004026d7
push eax
call fcn.004b2690
add esp, 4
jmp 0x4b2ae0
mov ecx, dword [ebp + 0xc]
call fcn.004026d7
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4b2ae0
mov ecx, dword [ebp + 0xc]
call fcn.004026d7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x69f778
lea eax, [ebp - 0x1c]
push eax
call fcn.004b23a0
add esp, 8
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b5d60
push 0
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b5d80
push 5
push 1
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b5a20
cmp dword [ebp + 0x10], 0
je 0x4b2b96
lea ecx, [ebp - 0x24]
call fcn.004015a1
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
push str.Referer
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004b2310
add esp, 0xc
push eax
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x24]
call fcn.004b2290
sub esp, 8
mov ecx, esp
mov dword [ebp - 0xc8], esp
lea eax, [ebp - 0x24]
push eax
call fcn.0040172e
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b5ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004021ed
cmp dword [ebp + 0x14], 0
je 0x4b2baf
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b5b40
cmp dword [ebp + 0x18], 0
je 0x4b2bc8
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b5b70
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004b25f0
mov ecx, eax
call fcn.004b6120
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x12e
jne 0x4b2d6b
push str.Location
lea ecx, [ebp - 0xe0]
call fcn.0040280d
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00403024
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.00402ae0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040218a
push eax
lea ecx, [ebp - 0x58]
call fcn.00401d8e
movzx ecx, al
test ecx, ecx
je 0x4b2d3d
lea ecx, [ebp - 0x58]
call fcn.00402fd6
add eax, 0x18
push eax
mov ecx, dword [ebp + 8]
call fcn.004023bf
mov ecx, dword [ebp + 0xc]
call fcn.00402244
test eax, eax
jbe 0x4b2d3d
push 0xffffffffffffffff
push 0x634ff0
mov ecx, dword [ebp + 0xc]
call fcn.004aa96f
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x4b2ca3
push 0xffffffffffffffff
push 0x69f6fc
mov ecx, dword [ebp + 0xc]
call fcn.004aa96f
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004b0230
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402664
lea ecx, [ebp - 0xfc]
call fcn.00402ae0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00402244
sub eax, 4
push eax
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b0230
mov byte [ebp - 4], 4
push 0
push 0x632618
lea ecx, [ebp - 0x74]
call fcn.00407280
cmp eax, 0xffffffff
je 0x4b2d24
mov ecx, dword [ebp + 8]
call fcn.004026d7
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402223
jmp 0x4b2d31
push str.tmpfile.tmp
mov ecx, dword [ebp + 0xc]
call fcn.00402223
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.00402ae0
cmp dword [ebp - 0x14], 5
jl 0x4b2d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004b25b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004b2570
jmp 0x4b2da8
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4b2d88
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004b25b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004b2570
jmp 0x4b2da8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004b25b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004b2570
jmp 0x4b2a7f
cmp dword [ebp - 0x18], 0xc8
jne 0x4b2dbd
mov dword [ebp - 0x100], 1
jmp 0x4b2dc7
mov dword [ebp - 0x100], 0
mov al, byte [ebp - 0x100]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c879
mov esp, ebp
pop ebp
ret