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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52067e
mov eax, dword fs:[0]
push eax
mov eax, 0x1528
call fcn.004906a0
mov eax, dword [0x57c8b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1530], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x43230a
call fcn.00409390
mov ecx, eax
test ecx, ecx
je 0x432349
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1534], esi
push 0x800
lea eax, [ebp - 0x1518]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004a99f0
push 0x800
lea eax, [ebp - 0xd18]
push 0
push eax
call fcn.004a99f0
add esp, 0x18
lea eax, [ebp - 0x1518]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x30e]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
xor edi, edi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x1528]
push eax
movups xmmword [ebp - 0x1528], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a99f0
movzx eax, byte [ebp - 0x1519]
push eax
movzx eax, byte [ebp - 0x151a]
push eax
movzx eax, byte [ebp - 0x151b]
push eax
movzx eax, byte [ebp - 0x151c]
push eax
movzx eax, byte [ebp - 0x151d]
push eax
movzx eax, byte [ebp - 0x151e]
push eax
movzx eax, byte [ebp - 0x151f]
push eax
movzx eax, byte [ebp - 0x1520]
push eax
movzx eax, word [ebp - 0x1522]
push eax
movzx eax, word [ebp - 0x1524]
push eax
push dword [ebp - 0x1528]
lea eax, [ebp - 0x210]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.0040ab20
lea eax, [ebp - 0x210]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431f87
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x310]
push 0x80
push eax
call fcn.004c5528
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x1518]
push eax
lea eax, [ebp - 0xd18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str._TemporaryCache
lea eax, [ebp - 0xd18]
push 0x400
push eax
call fcn.004c5322
add esp, 0xc
lea eax, [ebp - 0xd18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432003
inc edi
cmp edi, 0xa
jl 0x431ee1
jmp 0x432038
lea ecx, [ebp - 0xd18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432010
sub ecx, edx
lea eax, [ebp - 0xd18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1534]
call fcn.0040a4c0
mov esi, dword [ebp - 0x1534]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4322ee
push 0x208
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
lea eax, [ebp - 0x518]
push str.install_config_img.png
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x518]
mov dword [ebp - 0x114], eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x432095
sub edi, ecx
lea eax, [ebp - 0x110]
push 0x80
push eax
sar edi, 1
lea eax, [ebp - 0x114]
inc edi
push edi
push eax
call fcn.00407e40
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x518]
push ecx
push eax
push dword [ebp - 0x114]
call fcn.00434ed0
push eax
call fcn.0040ab80
add esp, 0x24
mov eax, dword [ebp - 0x1530]
mov edx, dword [ebp - 0x114]
add eax, 0x2c
mov byte [ebp - 4], 2
mov dword [ebp - 0x152c], eax
test edx, edx
jne 0x4320ff
xor ecx, ecx
jmp 0x432119
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432104
mov eax, dword [ebp - 0x152c]
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.0040a4c0
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x43213f
push eax
call fcn.004c5116
add esp, 4
mov ecx, dword [0x57fa60]
test ecx, ecx
jne 0x4321a9
push 0x57a054
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x57fa60], 0
jne 0x43218d
push 0x1c
call fcn.004402f0
mov edi, eax
add esp, 4
mov dword [ebp - 0x152c], edi
test edi, edi
je 0x432185
lea ecx, [edi + 4]
mov dword [edi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x432187
xor edi, edi
mov dword [0x57fa60], edi
push 0x57a054
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x57fa60]
test ecx, ecx
jne 0x4321a9
xor eax, eax
jmp 0x432223
mov eax, dword [0x57fa5c]
test eax, eax
jne 0x432223
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x57fa5c], 0
jne 0x432213
push 0x1c
call fcn.004402f0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x152c], ecx
test ecx, ecx
je 0x432205
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x432207
xor ecx, ecx
xchg dword [ebp - 0x152c], eax
mov dword [0x57fa5c], ecx
mov eax, dword [0x57fa60]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x57fa5c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4322ee
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x4322ee
mov edx, dword [edi]
mov ecx, edi
push 0
push str.ungzip
call dword [edx + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
test edi, edi
je 0x4322ee
push dword [ebp - 0x152c]
lea ecx, [ebp - 0x1520]
mov dword [ebp - 0x1520], 0
push edi
mov dword [ebp - 0x151c], 0
call fcn.00407fe0
mov ecx, dword [ebp - 0x1530]
mov eax, dword [ebp - 0x1520]
mov dword [ecx + 0x20], eax
mov edi, dword [ecx + 0x24]
mov eax, dword [ebp - 0x151c]
mov dword [ecx + 0x24], eax
test edi, edi
je 0x4322c8
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4322c8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4322c8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x1530]
push edi
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x20]
push dword [edi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x20]
push dword [ebp + 8]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43230a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43232c
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.00490238
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408b70
int3