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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1187
mov eax, dword fs:[0]
push eax
mov eax, 0x13f4
call fcn.100765e0
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13e0], edi
mov eax, dword [ecx + 4]
cmp eax, 1
je 0x10063f39
test eax, eax
je 0x10063f39
cmp eax, 2
jne 0x10063f39
mov eax, dword [edi + 0x6c]
cmp dword [ebp + 0xc], eax
jne 0x10063f39
lea eax, [ebp - 0x13f8]
mov dword [ebp - 0x13f8], 0
push eax
push dword [ecx + 0x10]
lea ecx, [edi - 0x24]
call fcn.10064d70
lea ecx, [ebp - 0x13ec]
call fcn.1000ce60
push 0x800
lea eax, [ebp - 0x1318]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100837f0
push 0x800
lea eax, [ebp - 0xb18]
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x1318]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.100837f0
add esp, 0xc
xor esi, esi
nop word [eax + eax]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x1328]
push eax
movups xmmword [ebp - 0x1328], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.100837f0
movzx eax, byte [ebp - 0x1319]
push eax
movzx eax, byte [ebp - 0x131a]
push eax
movzx eax, byte [ebp - 0x131b]
push eax
movzx eax, byte [ebp - 0x131c]
push eax
movzx eax, byte [ebp - 0x131d]
push eax
movzx eax, byte [ebp - 0x131e]
push eax
movzx eax, byte [ebp - 0x131f]
push eax
movzx eax, byte [ebp - 0x1320]
push eax
movzx eax, word [ebp - 0x1322]
push eax
movzx eax, word [ebp - 0x1324]
push eax
push dword [ebp - 0x1328]
lea eax, [ebp - 0x310]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.100331a0
lea eax, [ebp - 0x310]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10063b86
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.1008a665
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1318]
push eax
lea eax, [ebp - 0xb18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0xb18]
push 0x400
push eax
call fcn.1008ad3e
add esp, 0xc
lea eax, [ebp - 0xb18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ecx, 0xffffffff
test eax, eax
je 0x10063c08
inc esi
cmp esi, 0xa
jl 0x10063ae0
jmp 0x10063f17
lea ecx, [ebp - 0xb18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10063c11
sub ecx, edx
lea eax, [ebp - 0xb18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x13ec]
call fcn.10009e80
mov eax, dword [edi + 0xa4]
sub eax, 0x10
push eax
call fcn.10009e20
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x13f0], edi
cmp dword [edi - 0xc], 0
mov byte [ebp - 4], 1
jne 0x10063c7f
mov eax, dword [ebp - 0x13e0]
lea ecx, [ebp - 0x13f0]
add eax, 0xa0
push eax
call fcn.10009ac0
mov edi, dword [ebp - 0x13f0]
cmp dword [edi - 0xc], 0
je 0x10063ed6
lea ecx, [ebp - 0x13e8]
call fcn.1000ce60
push 0
mov byte [ebp - 4], 2
call fcn.1008a37d
mov dword [ebp - 0x1320], eax
lea eax, [ebp - 0x1320]
push eax
lea eax, [ebp - 0x134c]
mov dword [ebp - 0x131c], edx
push eax
call fcn.1008bbe8
or esi, 0xffffffff
test eax, eax
lea eax, [ebp - 0x1320]
mov ecx, esi
cmove ecx, dword [ebp - 0x1348]
push eax
lea eax, [ebp - 0x1370]
mov dword [ebp - 0x13e4], ecx
push eax
call fcn.1008bbe8
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x1320]
cmove ecx, dword [ebp - 0x1368]
push eax
lea eax, [ebp - 0x1394]
mov dword [ebp - 0x13fc], ecx
push eax
call fcn.1008bbe8
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x1320]
cmove ecx, dword [ebp - 0x1388]
push eax
lea eax, [ebp - 0x13b8]
mov dword [ebp - 0x1400], ecx
push eax
call fcn.1008bbe8
add esp, 0x24
test eax, eax
jne 0x10063d33
mov esi, dword [ebp - 0x13a8]
inc esi
jmp 0x10063d35
xor esi, esi
lea eax, [ebp - 0x1320]
push eax
lea eax, [ebp - 0x13dc]
push eax
call fcn.1008bbe8
add esp, 8
test eax, eax
jne 0x10063d5c
mov eax, dword [ebp - 0x13c8]
add eax, 0x76c
jmp 0x10063d5e
xor eax, eax
push dword [ebp - 0x13e4]
push dword [ebp - 0x13fc]
push dword [ebp - 0x1400]
push esi
push eax
push edi
lea eax, [ebp - 0x13e8]
push str._s_t_d_d_d_d_d
push eax
call fcn.10021c80
add esp, 0x20
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x10063f56
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x13f4], eax
mov esi, dword [ebp - 0x13e0]
add esi, 0xb0
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.1000a6b0
push 0x208
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.100837f0
lea eax, [ebp - 0x318]
push 0x104
push eax
call fcn.100638d0
lea eax, [ebp - 0x318]
push eax
push dword [ebp - 0x13ec]
push str._s_s.png
push esi
call fcn.10021c80
add esp, 0x24
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x1388
lea eax, [ebp - 0x13f4]
push eax
lea eax, [ebp - 0x13e8]
push esi
push eax
call fcn.10035430
add esp, 0x14
test eax, eax
jne 0x10063e8e
lea ecx, [ebp - 0x13e4]
call fcn.1000ce60
mov eax, dword [ebp - 0x13e0]
mov byte [ebp - 4], 4
push dword [eax + 0xb4]
lea eax, [ebp - 0x13e4]
push str.banner_failed__s
push eax
call fcn.10021c80
mov esi, dword [ebp - 0x13e4]
add esp, 0xc
push 0
push 0
push 1
push 0
push esi
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
or ecx, 0xffffffff
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10063e91
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x13f4]
mov eax, ecx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10063eb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x13e8]
mov eax, ecx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10063ed9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
cmp dword [ebp - 0x13f8], 0
je 0x10063ef9
mov eax, dword [ebp - 0x13e0]
mov eax, dword [eax + 8]
test eax, eax
je 0x10063ef9
mov dword [eax + 0x160], 1
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ecx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10063f17
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x13ec]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10063f39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.1000a7c0
int3