Function at 0x420b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a10b
mov eax, dword fs:[0]
push eax
mov eax, 0x1348
call fcn.0042e460
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x132c], ecx
mov edi, dword [eax]
cmp dword [edi - 0xc], 0x104
jg 0x420e4b
push 0x800
lea eax, [ebp - 0x1310]
push 0
push eax
call fcn.0044e2e0
push 0x800
lea eax, [ebp - 0xb10]
push 0
push eax
call fcn.0044e2e0
push edi
lea eax, [ebp - 0x1310]
push 0x400
push eax
call fcn.00456d9f
add esp, 0x24
test esi, esi
je 0x420c22
cmp word [esi], 0
je 0x420c22
push esi
lea eax, [ebp - 0x1310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xfe
lea eax, [ebp - 0x10e]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
mov dword [ebp - 0x1328], 0
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x1320]
push eax
movups xmmword [ebp - 0x1320], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.0044e2e0
movzx eax, byte [ebp - 0x1311]
lea ecx, [ebp - 0x1322]
movzx edi, byte [ebp - 0x1317]
add esp, 0xc
movzx esi, byte [ebp - 0x1318]
mov dword [ebp - 0x1338], eax
movzx eax, byte [ebp - 0x1312]
mov dword [ebp - 0x133c], eax
movzx eax, byte [ebp - 0x1313]
mov dword [ebp - 0x1340], eax
movzx eax, byte [ebp - 0x1314]
mov dword [ebp - 0x1344], eax
movzx eax, byte [ebp - 0x1315]
mov dword [ebp - 0x1348], eax
movzx eax, byte [ebp - 0x1316]
mov dword [ebp - 0x134c], eax
call fcn.0041ef80
push dword [ebp - 0x1338]
movzx ecx, word [ebp - 0x131a]
mov edx, eax
push dword [ebp - 0x133c]
movzx eax, word [ebp - 0x131c]
push dword [ebp - 0x1340]
push dword [ebp - 0x1344]
push dword [ebp - 0x1348]
push dword [ebp - 0x134c]
push edi
push esi
push ecx
push eax
push dword [ebp - 0x1320]
lea eax, [ebp - 0x310]
push edx
push eax
call fcn.0041ea40
lea eax, [ebp - 0x310]
add esp, 0x34
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420d36
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.00458cc1
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1310]
push eax
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x49fc88]
test al, 1
jne 0x420d97
or eax, 1
mov dword [0x49fc84], 0
mov dword [0x49fc88], eax
mov byte [ebp - 0x1321], 0
lea eax, [ebp - 0x1334]
mov dword [ebp - 4], 0
push eax
call fcn.004220bc
lea eax, [ebp - 0x1334]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1354], eax
lea eax, [ebp - 0x1321]
mov dword [ebp - 0x1350], eax
lea eax, [ebp - 0x1354]
push eax
push 0x41e3c0
push 0x49fc84
call fcn.004224c4
add esp, 0x10
test eax, eax
je 0x420e9c
lea eax, [ebp - 0x1334]
mov dword [ebp - 4], 2
push eax
call fcn.004220cb
push 0x49fc8c
lea eax, [ebp - 0xb10]
mov dword [ebp - 4], 0xffffffff
push 0x400
push eax
call fcn.00459196
add esp, 0x10
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420e6a
mov eax, dword [ebp - 0x1328]
inc eax
mov dword [ebp - 0x1328], eax
cmp eax, 0xa
jl 0x420c42
xor eax, eax
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.0042e446
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0xb10]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420e73
mov ecx, dword [ebp - 0x132c]
lea eax, [ebp - 0xb10]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00403580
mov eax, 1
jmp 0x420e4d
lea eax, [ebp - 0x1334]
mov byte [ebp - 4], 3
push eax
call fcn.004220ec
add esp, 4
mov byte [ebp - 4], 1
test al, al
jne 0x420ebc
call fcn.00422502
sub esp, 8
lea eax, [ebp - 0x1334]
mov ecx, esp
push eax
call fcn.004028d0
call fcn.00403a30
int3