Function at 0x41a120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3f1b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4f4214]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x664
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], esi
call fcn.0049caff
add esp, 4
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x41a181
lea edx, [ebx + 0x18]
mov ecx, eax
call fcn.00421b80
mov edi, eax
mov dword [ebp - 0x38], edi
jmp 0x41a186
mov dword [ebp - 0x38], ecx
mov edi, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 4]
mov dword [esi + 0x248], eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc4]
push esi
mov ecx, edi
mov dword [ebp - 0x4c], edi
call eax
mov ecx, dword [edi + 0x4ec]
mov ebx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebx
call eax
mov edi, dword [edi + 0x4ec]
mov edx, dword [edi]
mov eax, dword [edx + 0x9c]
push ebx
mov ecx, edi
call eax
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.0049c139
mov edx, dword [ebp - 0x34]
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x1c
mov ecx, esp
mov byte [edi + ebx], 0
mov eax, edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x40], esp
mov byte [ecx], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x41a230
sub eax, edx
push eax
push edi
call fcn.00407660
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ebx, [ebp - 0x2c]
call fcn.00437190
add esp, 0x1c
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x41a268
mov eax, dword [eax]
push 0
push 0
push 0xffffffffffffffff
mov ecx, eax
push ecx
push 0
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x34], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c139
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x34]
push eax
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x34]
xor edx, edx
mov word [ebx + eax*2], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x41a2d7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049c71f
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
lea edx, [esi + 0x22c]
cmp ebx, eax
je 0x41a310
mov eax, ebx
lea ecx, [eax + 2]
mov dword [ebp - 0x34], ecx
jmp 0x41a300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a300
sub eax, dword [ebp - 0x34]
sar eax, 1
push ebx
push edx
mov ebx, eax
call fcn.004026a0
push edi
call fcn.0049ca2e
mov edx, dword [ebp - 0x48]
add esp, 4
push edx
call fcn.0049ca2e
mov eax, dword [0x4f41d4]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x4f41d4
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push esi
push eax
mov ebx, 0x4d694c
call fcn.00415430
mov byte [ebp - 4], 5
lea ecx, [esi + 4]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ebx, eax
call fcn.0041fb40
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x48]
push edx
mov ebx, str..png
call fcn.00415430
add esp, 0x18
mov byte [ebp - 4], 7
lea edi, [ebp - 0x34]
call fcn.00402630
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 4]
mov ebx, dword [ebp - 0x38]
call fcn.004220c0
mov edx, dword [esi + 0x14]
add esi, 0x14
mov dword [ebp - 0x40], esi
mov esi, ebx
call fcn.00422360
mov esi, dword [ebp - 0x44]
mov ecx, dword [esi + 0x1c]
push ecx
mov edi, ebx
call fcn.00422430
mov esi, dword [esi + 0x234]
call fcn.00422550
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
push 0
mov ecx, esi
call fcn.0041efd0
mov edi, dword [ebp - 0x44]
add edi, 0x24
push 0x4d6950
push edi
mov byte [ebp - 0x2d], 0
call fcn.0049dc20
add esp, 8
cmp eax, edi
je 0x41a4a1
push str.https:__
push edi
call fcn.0049dc20
add esp, 8
cmp eax, edi
je 0x41a4a1
cmp byte [edi], 0
je 0x41a4a5
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41a4a5
push edi
xor ebx, ebx
call fcn.00434a80
mov edx, dword [ebp - 0x38]
mov ebx, dword [edx + 0x4e8]
add esp, 4
mov edi, eax
call fcn.0045b080
push edi
call fcn.0049ca2e
mov ebx, dword [ebp - 0x38]
add esp, 4
jmp 0x41a4a5
mov byte [ebp - 0x2d], 1
mov ecx, dword [esi + 0x284]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax + 0x14]
add ecx, 0x4a0
push 0
push ebx
call edx
lea edi, [ebp - 0x4c]
lea esi, [ebx + 0x64c]
call fcn.0041fc90
cmp byte [ebp - 0x2d], 0
mov dword [eax], esi
je 0x41a4dc
mov ecx, ebx
call fcn.0041f4b0
mov eax, dword [ebp - 0x44]
mov ecx, 6
cmp dword [eax + 0x230], ecx
jne 0x41a50f
mov dword [ebx + 0x62c], ecx
mov ecx, ebx
mov dword [ebx + 0x634], 0x14
mov dword [ebx + 0x638], 0
call fcn.00422860
jmp 0x41a523
mov dword [eax + 0x230], 7
mov dword [ebx + 0x62c], 4
mov ecx, ebx
call fcn.00422860
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.0049c72a
mov esp, ebp
pop ebp
ret