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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ce367
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10102f10]
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 dword [ebp - 0x230], ecx
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 8]
xor bh, bh
push 0x208
push 0
push eax
mov dword [ebp - 0x228], edi
call fcn.10092e90
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
call fcn.10033800
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
test eax, eax
jne 0x10033629
mov eax, dword [0x1010820c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test al, 1
jne 0x1003341e
or eax, 1
mov dword [0x1010820c], eax
call edi
push 0x100d3840
mov dword [0x10108200], 0x100d565c
mov dword [0x10108204], eax
mov byte [0x10108208], bh
call fcn.10064e43
mov eax, dword [0x1010820c]
add esp, 4
test al, 2
jne 0x1003347a
or eax, 2
mov dword [0x10108210], 0x100d5674
mov dword [0x1010820c], eax
xor eax, eax
push 0x100d3870
mov dword [0x10108214], 0x10108200
mov dword [0x10108224], 2
mov dword [0x1010821c], 0
mov dword [0x10108220], 0
mov dword [0x10108228], eax
mov dword [0x10108218], 0x10108210
call fcn.10064e43
add esp, 4
mov eax, dword [0x10108210]
mov ecx, 0x10108210
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
test eax, 0xffff0000
jne 0x100334b5
movzx eax, ax
push eax
call fcn.10009ca0
jmp 0x100334bb
push eax
call fcn.1000d3a0
mov eax, dword [0x1010820c]
mov dword [ebp - 4], 1
test al, 1
jne 0x100334fd
or eax, 1
mov dword [0x1010820c], eax
call edi
push 0x100d3840
mov dword [0x10108200], 0x100d565c
mov dword [0x10108204], eax
mov byte [0x10108208], 0
call fcn.10064e43
mov eax, dword [0x1010820c]
add esp, 4
test al, 2
jne 0x10033559
or eax, 2
mov dword [0x10108210], 0x100d5674
mov dword [0x1010820c], eax
xor eax, eax
push 0x100d3870
mov dword [0x10108214], 0x10108200
mov dword [0x10108224], 2
mov dword [0x1010821c], 0
mov dword [0x10108220], 0
mov dword [0x10108228], eax
mov dword [0x10108218], 0x10108210
call fcn.10064e43
add esp, 4
mov eax, dword [0x10108210]
mov ecx, 0x10108210
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x10033590
test esi, 0xffff0000
jne 0x10033590
movzx eax, si
lea ecx, [ebp - 0x220]
push eax
call fcn.10009ca0
jmp 0x1003359c
push esi
lea ecx, [ebp - 0x220]
call fcn.1000d3a0
push 0
push 0x1388
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10042e20
mov edx, dword [ebp - 0x220]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 1
setne bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100335e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10033608
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10033621
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10033621
mov bl, 1
jmp 0x10033623
xor bl, bl
mov edi, dword [ebp - 0x228]
mov byte [ebp - 0x219], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 4
push eax
call fcn.1003a002
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 5
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x219]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x238]
push eax
push 0x10007590
push 0x1010823c
call fcn.1003a67b
add esp, 0x10
test eax, eax
je 0x1003373b
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 6
push eax
call fcn.1003a03c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, str.down_fail
test bl, bl
mov eax, str.down_succ
cmove eax, ecx
mov ecx, dword [0x10108238]
push 0
push str.mouse
push 1
push 0
push eax
call fcn.10050810
test bl, bl
je 0x1003371b
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.1006cda0
add esp, 8
test eax, eax
jne 0x100336ff
mov ecx, dword [ebp - 0x230]
push edi
call fcn.100332b0
test al, al
je 0x100336ff
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bh, 1
jmp 0x1003371b
push 0
push str.mouse
push 1
push 0
push str.unzip_fail
call fcn.1000fe30
mov ecx, eax
call fcn.10050810
mov al, bh
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.10064e61
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
call fcn.1003a05d
add esp, 4
mov byte [ebp - 4], 5
test al, al
jne 0x1003375b
call fcn.1003a693
sub esp, 8
lea eax, [ebp - 0x22c]
mov ecx, esp
push eax
call fcn.100080b0
call fcn.1000c770
int3