Function at 0x4b0470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520ffb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x103c
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x828], eax
mov edi, ecx
mov dword [ebp - 0x824], 3
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x4b07df
mov esi, dword [edi + 0x6c20]
cmp esi, ebx
je 0x4b07df
mov eax, esi
lea edx, [eax + 2]
jmp 0x4b04e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b04e0
sub eax, edx
sar eax, 1
je 0x4b07b4
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea edx, [ebp - 0x81c]
push edx
push esi
mov esi, dword [ebp - 0x828]
mov ecx, dword [esi + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4b054f
mov eax, dword [edi + 0x6c20]
push 0x3ff
push eax
push 0x400
lea eax, [ebp - 0x81c]
push eax
call fcn.004fa71b
add esp, 0x10
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b0632
push edi
lea edx, [ebp - 0x81c]
mov ecx, esi
call fcn.004b14f0
test eax, eax
jne 0x4b05fd
lea edx, [ebp - 0x81c]
push edx
push edi
push str.__s__Inf_was_valid___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
mov dword [ebp - 0x824], 1
push str.Printer
lea eax, [edi + 0x200]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x4b06f6
lea esi, [ebp - 0x104c]
call fcn.0049d8e0
mov byte [ebp - 4], 1
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 0
mov dword [ebp - method.CWow64.virtual_0], vtable.CWow64.0
mov eax, dword [ebp - 0x1048]
test eax, eax
je 0x4b05eb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
mov ebx, dword [edi + 0x6c24]
je 0x4b064d
add ebx, 0xe00
jmp 0x4b0653
push 0x800
push 0
mov eax, dword [edi + 0x6c20]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp - 0x81c]
push ecx
push edi
push str.__s__Getting_data_from_INF_returns_fail_____s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0xc
jmp 0x4b07b4
push 0x800
push 0
mov edx, dword [edi + 0x6c20]
push edx
call fcn.004fd670
add esp, 0xc
jmp 0x4b07b4
add ebx, 0x1600
mov dword [ebp - 0x830], ebx
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea edx, [ebp - 0x81c]
push edx
push ebx
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4b06ad
push 0x3ff
push ebx
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004fa71b
add esp, 0x10
lea edx, [ebp - 0x81c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b06f6
push 0x800
push eax
push ebx
call fcn.004fd670
add esp, 0xc
lea eax, [edi + 0x400]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b06d6
sub eax, edx
sar eax, 1
je 0x4b06f6
mov dword [ebp - 0x824], 2
jmp 0x4b07b4
mov byte [ebp - 0x81d], 1
lea esi, [edi + 0x400]
mov eax, esi
lea edx, [eax + 2]
jmp 0x4b0710
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b0710
sub eax, edx
sar eax, 1
je 0x4b07a0
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
push esi
mov edx, dword [ebp - 0x828]
mov ecx, dword [edx + 0xfd64]
call fcn.00480760
test eax, eax
je 0x4b0775
push 0x3ff
push esi
push 0x400
lea eax, [ebp - 0x81c]
push eax
call fcn.004fa71b
add esp, 0x10
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b07a0
lea edx, [ebp - 0x81c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4b07a0
mov byte [ebp - 0x81d], 0
jmp 0x4b07b4
push esi
mov ecx, dword [edi + 0x6c24]
add ecx, 0x600
mov edx, ebx
call fcn.004b0fd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x4b07c1