Function at 0x4220d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5087ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp dword [0x5da95c], ebx
je 0x422333
push esi
push str.kernel32.dll
mov dword [0x5da95c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x422332
push 0x513660
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42213d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
push 0x51364c
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42215d
lea ecx, [ebp - 0x18]
push ecx
push 0x420890
push 4
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x422332
push 0x104
push 0x656bf0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x656bf0
call fcn.004d28b3
add esp, 8
test eax, eax
je 0x422198
xor ecx, ecx
mov word [eax], cx
push 0x656bf0
lea ecx, [ebp - 0x30]
call fcn.004158d0
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0
je 0x422217
push 0x513670
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00414540
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ebx, 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
jb 0x4221e1
mov eax, dword [eax]
push eax
call esi
cmp eax, 0xffffffff
je 0x422217
push 0x51368c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414540
add esp, 0xc
mov ebx, 3
cmp dword [eax + 0x14], 8
jb 0x42220b
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
jne 0x42221b
mov byte [ebp - 0xd], 0
test bl, 2
je 0x422248
and ebx, 0xfffffffd
cmp dword [ebp - 0x34], 8
jb 0x422234
push dword [ebp - 0x48]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x422268
and ebx, 0xfffffffe
cmp dword [ebp - 0x4c], 8
jb 0x422268
push dword [ebp - 0x60]
call fcn.004cf489
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x422278
push 0x51368c
jmp 0x422305
cmp dword [ebp - 0x14], 0
jne 0x4222d9
push 0x5136bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414540
add esp, 0xc
or ebx, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x18], ebx
jb 0x4222a5
mov eax, dword [eax]
push eax
call esi
cmp eax, 0xffffffff
je 0x4222d9
push str.SynCom.dll.manifest
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00414540
add esp, 0xc
or ebx, 8
cmp dword [eax + 0x14], 8
jb 0x4222cd
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0xd], 1
cmp eax, 0xffffffff
jne 0x4222dd
mov byte [ebp - 0xd], 0
test bl, 8
je 0x4222ed
lea ecx, [ebp - 0x60]
and ebx, 0xfffffff7
call fcn.004090f0
test bl, 4
je 0x4222fa
lea ecx, [ebp - 0x48]
call fcn.004090f0
cmp byte [ebp - 0xd], 0
je 0x422319
push str.SynCom.dll.manifest
push 0x104
push 0x656bf0
call fcn.004d261a
add esp, 0xc
jmp 0x422321
xor eax, eax
mov word [0x656bf0], ax
cmp dword [ebp - 0x1c], 8
jb 0x422332
push dword [ebp - 0x30]
call fcn.004cf489
add esp, 4
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, 0x656bf0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret