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

Disassembly:
push 0xffffffffffffffff
push 0x6182e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd64
mov eax, dword [0x6ec738]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x18], ecx
jne 0x4b2262
mov eax, 0x6ec73c
push ebp
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.004023e0
mov eax, dword [0x6ec68c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xd7c], ebx
je 0x4b2435
mov eax, dword [0x6ec66c]
cmp eax, ebx
je 0x4b2435
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4b2435
mov eax, dword [0x6ec66c]
push eax
call ebp
cmp eax, 0xffffffff
je 0x4b22d4
mov ecx, dword [0x6ec66c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004023e0
jmp 0x4b24cc
mov edx, dword [0x6ec66c]
push 0x5c
push edx
call fcn.005de073
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4b2435
push ebx
lea ecx, [esp + 0x30]
add esi, 2
call fcn.00443900
push 0x6c1528
lea ecx, [esp + 0xac]
mov byte [esp + 0xd80], 1
call fcn.005fa9e2
push esi
lea ecx, [esp + 0xa8]
call fcn.005faa09
mov eax, dword [0x6ec66c]
lea ecx, [esp + 0x90]
push eax
call fcn.004023e0
mov ecx, dword [esp + 0x1c]
push 0x6ed03c
mov byte [esp + 0xa0], 1
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x90]
mov dword [esp + 0x8c], edx
call fcn.005fa992
lea ecx, [esp + 0x2c]
call fcn.005f6856
cmp eax, 1
jne 0x4b237d
mov eax, dword [0x6ec66c]
lea ecx, [esp + 0x10]
push eax
call fcn.004023e0
mov edi, 1
lea ecx, [esp + 0xec]
mov byte [esp + 0xd7c], 9
call fcn.005a1de0
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd7c], 8
call fcn.00602365
lea ecx, [esp + 0xac]
mov byte [esp + 0xd7c], 7
call fcn.005fa859
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd7c], 6
call fcn.005fa859
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd7c], 5
call fcn.005fa859
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd7c], 4
call fcn.005fa859
lea ecx, [esp + 0x90]
mov byte [esp + 0xd7c], 3
call fcn.00401070
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd7c], 2
call fcn.005fa859
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd7c], bl
call fcn.005f6497
cmp edi, ebx
jne 0x4b24cc
mov ecx, 0x6c4870
test ecx, ecx
je 0x4b24cc
push ecx
call fcn.005de123
add esp, 4
test eax, eax
je 0x4b24cc
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4b2464
push eax
call fcn.005de123
add esp, 4
mov esi, eax
jmp 0x4b2466
xor esi, esi
push 0x6c4870
call fcn.005de123
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.005f6c5c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4b24cc
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4b24a4
push eax
push esi
call fcn.005de2e9
push 0x6c4870
push esi
call fcn.005de2bf
add esp, 0x10
jmp 0x4b24b2
push 0x6c4870
push esi
call fcn.005de2e9
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00401070
push esi
mov dword [esp + 0x14], esi
call fcn.005de123
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4b24d8
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 0xffffffff
pop ebp
jne 0x4b26df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4b26df
push ebx
lea ecx, [esp + 0x2c]
call fcn.00443900
push 0x6c2dcc
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd7c], 0xa
call fcn.005fa9e2
push 0x6c4860
lea ecx, [esp + 0xa4]
call fcn.005fa9e2
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x4b2534
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x90]
call fcn.004023e0
mov eax, dword [esp + 0x18]
push 0x6ed03c
mov byte [esp + 0x9c], 1
mov ecx, dword [eax + 4]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x8c]
call fcn.005fa992
lea ecx, [esp + 0x28]
call fcn.005f6856
cmp eax, 1
je 0x4b262f
lea ecx, [esp + 0xe8]
mov byte [esp + 0xd78], 0x12
call fcn.005a1de0
lea ecx, [esp + 0xac]
mov byte [esp + 0xd78], 0x11
call fcn.00602365
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd78], 0x10
call fcn.005fa859
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd78], 0xf
call fcn.005fa859
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd78], 0xe
call fcn.005fa859
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd78], 0xd
call fcn.005fa859
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd78], 0xc
call fcn.00401070
lea ecx, [esp + 0x88]
mov byte [esp + 0xd78], 0xb
call fcn.005fa859
lea ecx, [esp + 0x28]
mov byte [esp + 0xd78], bl
call fcn.005f6497
jmp 0x4b27f7
lea ecx, [esp + 0xe8]
mov byte [esp + 0xd78], 0x1a
call fcn.005a1de0
lea ecx, [esp + 0xac]
mov byte [esp + 0xd78], 0x19
call fcn.00602365
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd78], 0x18
call fcn.005fa859
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd78], 0x17
call fcn.005fa859
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd78], 0x16
call fcn.005fa859
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd78], 0x15
call fcn.005fa859
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd78], 0x14
call fcn.00401070
lea ecx, [esp + 0x88]
mov byte [esp + 0xd78], 0x13
call fcn.005fa859
lea ecx, [esp + 0x28]
mov byte [esp + 0xd78], bl
call fcn.005f6497
mov edi, dword [esp + 0xd80]
cmp edi, ebx
je 0x4b27cb
mov edx, 0x6c47f4
test edx, edx
je 0x4b2785
push edx
call fcn.005de123
add esp, 4
test eax, eax
je 0x4b2785
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4b271d
push eax
call fcn.005de123
add esp, 4
mov esi, eax
jmp 0x4b271f
xor esi, esi
push 0x6c47f4
call fcn.005de123
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005f6c5c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4b2785
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4b275d
push eax
push esi
call fcn.005de2e9
push 0x6c47f4
push esi
call fcn.005de2bf
add esp, 0x10
jmp 0x4b276b
push 0x6c47f4
push esi
call fcn.005de2e9
add esp, 8
lea ecx, [esp + 0xc]
call fcn.00401070
push esi
mov dword [esp + 0x10], esi
call fcn.005de123
add esp, 4
mov dword [esp + 0x14], eax
push ebx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
call fcn.00402d00
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xd78], 0x1b
cmp eax, ebx
jne 0x4b27b1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.0045feb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd78], bl
call fcn.00401070
cmp dword [0x6ecb90], ebx
je 0x4b27f7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005f71bf
push ebx
push ebx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004023d0
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x6ecb90]
lea ecx, [esp + 0xc]
mov dword [esp + 0xd78], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xd70]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xd70
ret 4