Function at 0x4120a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c25d
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x474104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x388], esi
mov dword [ebp - 0x384], 0
mov dword [ebp - 4], 1
mov dword [esi], 0
mov byte [ebp - 4], 2
call fcn.00403280
mov ecx, eax
test ecx, ecx
je 0x412769
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov byte [ebp - 4], 1
mov dword [esi], eax
mov eax, 1
mov ecx, edi
mov dword [ebp - 0x384], eax
call fcn.0042e9e0
push 0
push str.Properties
mov ecx, eax
call fcn.0042ea60
or ebx, 0xffffffff
test eax, eax
je 0x41272a
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
push 0
push str.Logo
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0042ea60
mov edi, eax
test edi, edi
je 0x4126f0
mov byte [ebp - 4], 4
call fcn.00403280
mov ecx, eax
test ecx, ecx
je 0x412773
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov byte [ebp - 4], 5
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x14]
mov ecx, eax
call fcn.0042ea40
mov edx, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4121b4
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x25c]
call fcn.00407160
cmp dword [ebp - 0x248], 0x10
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x234], 0
cmovae edx, dword [ebp - 0x25c]
mov ecx, edx
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412200
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.00407160
mov byte [ebp - 4], 6
lea edi, [ebp - 0x244]
cmp dword [ebp - 0x230], 0x10
cmovae edi, dword [ebp - 0x244]
cmp dword [ebp - 0x234], 0
je 0x4124b6
push 0x5c
lea eax, [ebp - 0x37c]
push 0
push eax
call fcn.004356c0
add esp, 0xc
lea eax, [ebp - 0x31f]
push 0xa3
push 0
push eax
call fcn.004356c0
mov edx, dword [ebp - 0x234]
add esp, 0xc
mov ecx, ebx
mov byte [ebp - 0x320], 1
lea eax, [edx - 1]
cmp eax, 0xffffffff
cmovb ecx, eax
movzx eax, byte [ecx + edi]
add ecx, edi
mov al, byte [ebp + eax - 0x37c]
test al, al
jne 0x4122a8
nop dword [eax]
cmp ecx, edi
je 0x4124b6
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x37c]
test al, al
je 0x412290
sub ecx, edi
cmp ecx, 0xffffffff
je 0x4124b6
cmp edx, ecx
jb 0x41277d
cmp dword [ebp - 0x230], 0x10
lea eax, [ebp - 0x244]
mov dword [ebp - 0x234], ecx
cmovae eax, dword [ebp - 0x244]
push 3
mov byte [ecx + eax], 0
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x230], 0x10
lea ecx, [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
lea ecx, [ebp - 0x37c]
cmovae eax, dword [ebp - 0x244]
push eax
mov dword [ebp - 0x228], 0
call fcn.00414440
push 0x210
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004356c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x41235b
xor ecx, ecx
cmp cx, word [eax]
je 0x41235b
mov ecx, dword [ebp - 0x37c]
test ecx, ecx
je 0x412361
xor edx, edx
cmp dx, word [ecx]
je 0x412361
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x412361
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.00414090
mov eax, 3
mov dword [ebp - 0x384], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x378]
mov eax, dword [ebp - 0x37c]
cmp eax, ecx
je 0x412395
push eax
call fcn.0043d57f
add esp, 4
push dword [ebp - 0x228]
lea ecx, [ebp - 0x274]
call fcn.00405b20
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x380]
push eax
call fcn.004127a0
mov byte [ebp - 4], 0xb
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x41242c
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x412417
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x412417
push edx
call fcn.00414980
add esp, 4
mov dword [ebp - 0x38c], eax
mov byte [ebp - 4], 0xc
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x412406
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x38c]
add esi, 0x10
mov dword [ebp - 0x22c], esi
jmp 0x41242c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.004149f0
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x380]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41244d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x412491
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412487
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412782
push edx
push ecx
call fcn.0043389e
add esp, 8
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4124b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
cmp dword [esi - 0xc], 0
lea edi, [esi - 0x10]
jne 0x412602
cmp dword [ebp - 0x248], 0x10
lea eax, [ebp - 0x25c]
lea ecx, [ebp - 0x378]
cmovae eax, dword [ebp - 0x25c]
push 3
mov dword [ebp - 0x37c], ecx
lea ecx, [ebp - 0x37c]
push eax
call fcn.00414440
push 0x210
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xf
push 0
push eax
call fcn.004356c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x41253b
xor ecx, ecx
cmp cx, word [eax]
je 0x41253b
mov ecx, dword [ebp - 0x37c]
test ecx, ecx
je 0x412541
xor edx, edx
cmp dx, word [ecx]
je 0x412541
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x412541
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.00414090
or dword [ebp - 0x384], 4
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x228]
lea edx, [eax - 0x10]
cmp edx, edi
je 0x4125ca
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x4125af
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x4125af
push edx
call fcn.00414980
add esp, 4
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 0x11
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x41259e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x380]
add esi, 0x10
mov dword [ebp - 0x22c], esi
jmp 0x4125c4
push dword [eax - 0xc]
lea ecx, [ebp - 0x22c]
push eax
call fcn.004149f0
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x12
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x378]
mov eax, dword [ebp - 0x37c]
cmp eax, ecx
je 0x412602
push eax
call fcn.0043d57f
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412676
mov edx, dword [ebp - 0x388]
lea ecx, [esi - 0x10]
mov edi, dword [edx]
sub edi, 0x10
cmp ecx, edi
je 0x412676
mov eax, dword [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41266b
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41266b
push ecx
call fcn.00414980
add esp, 4
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 0x13
lea ecx, [edi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412658
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x388]
mov eax, dword [ebp - 0x380]
add eax, 0x10
mov dword [ecx], eax
jmp 0x412676
push dword [ecx + 4]
mov ecx, edx
push esi
call fcn.004149f0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x230]
cmp edx, 0x10
jb 0x4126b4
mov ecx, dword [ebp - 0x244]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4126aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412787
push edx
push ecx
call fcn.0043389e
add esp, 8
mov dword [ebp - 0x234], 0
add esi, 0xfffffff0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
mov byte [ebp - 4], 0x14
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4126ea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x388]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x248]
cmp edx, 0x10
jb 0x41272a
mov ecx, dword [ebp - 0x25c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412720
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41278c
push edx
push ecx
call fcn.0043389e
add esp, 8
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0x15
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412749
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00433370
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403130
push 0x80004005
call fcn.00403130
call fcn.00407440
call fcn.0043d7cf
call fcn.0043d7cf
call fcn.0043d7cf
int3