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

Disassembly:
push 0xffffffffffffffff
push 0x41b05d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0xc
mov dword [esp + 0x270], ebp
call fcn.004129a7
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x26c], 1
je 0x401200
push 0x41f184
mov ecx, eax
call fcn.00402f80
jmp 0x401202
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x26c], 0
mov dword [esp + 0x10], eax
jne 0x40121c
push 0x8007000e
call fcn.00412746
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x27c]
mov byte [esp + 0x274], 2
call fcn.004023e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], 4
call fcn.00402250
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401257
mov eax, dword [eax]
jmp 0x401259
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401634
mov dword [esp + 0x1c], ebp
mov bl, 5
push 0xc
mov byte [esp + 0x270], bl
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x26c], 6
je 0x40129e
push 0x41f168
mov ecx, eax
call fcn.00402f80
jmp 0x4012a0
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x26c], bl
mov dword [esp + 0x10], eax
jne 0x4012b9
push 0x8007000e
call fcn.00412746
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 7
call fcn.004023e0
mov eax, dword [eax]
cmp eax, ebp
je 0x4012de
mov eax, dword [eax]
jmp 0x4012e0
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea ecx, [esp + 0x28]
push ecx
push ebp
push eax
call edi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402250
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], bl
call fcn.00402250
cmp esi, ebp
push 0xc
je 0x4013a1
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x26c], 8
je 0x40133a
push 0x41f168
mov ecx, eax
call fcn.00402f80
jmp 0x40133c
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x26c], bl
mov dword [esp + 0x10], eax
jne 0x401355
push 0x8007000e
call fcn.00412746
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 9
call fcn.004023e0
mov esi, eax
mov ecx, esi
call fcn.00402ec0
lea ecx, [esp + 0x1c]
call fcn.00402250
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
call fcn.00402250
mov byte [esp + 0x26c], bl
lea ecx, [esp + 0x10]
jmp 0x4014bf
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x26c], 0xa
je 0x4013c7
push 0x41f14c
mov ecx, eax
call fcn.00402f80
jmp 0x4013c9
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x26c], bl
mov dword [esp + 0x10], eax
jne 0x4013e2
push 0x8007000e
call fcn.00412746
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0xb
call fcn.004023e0
mov eax, dword [eax]
cmp eax, ebp
je 0x401407
mov eax, dword [eax]
jmp 0x401409
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
push ebp
push eax
call edi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402250
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], bl
call fcn.00402250
cmp esi, ebp
je 0x40162b
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x26c], 0xc
je 0x40145d
push 0x41f14c
mov ecx, eax
call fcn.00402f80
jmp 0x40145f
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x26c], bl
mov dword [esp + 0x10], eax
jne 0x401478
push 0x8007000e
call fcn.00412746
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0xd
call fcn.004023e0
mov esi, eax
mov ecx, esi
call fcn.00402ec0
lea ecx, [esp + 0x1c]
call fcn.00402250
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
call fcn.00402250
mov byte [esp + 0x26c], bl
lea ecx, [esp + 0x10]
call fcn.00402250
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x26c], 0xe
je 0x4014ec
push 0x41f130
mov ecx, eax
call fcn.00402f80
jmp 0x4014ee
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x26c], bl
mov dword [esp + 0x10], eax
jne 0x401507
push 0x8007000e
call fcn.00412746
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0xf
call fcn.004023e0
mov eax, dword [eax]
cmp eax, ebp
je 0x40152c
mov eax, dword [eax]
jmp 0x40152e
xor eax, eax
push ebp
push 3
push ebp
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00402250
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], bl
call fcn.00402250
cmp edi, 0xffffffff
je 0x40162b
mov dword [esp + 0x20], ebp
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
mov byte [esp + 0x26c], 0x10
mov esi, 0x41f040
mov edx, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0x41f120
push edi
call ebp
test eax, eax
je 0x4015b2
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5c]
push eax
push 0x104
push ecx
lea edx, [esp + 0x58]
push 1
push edx
call ebx
test eax, eax
je 0x4015b2
cmp word [esp + 0x5c], 0
jne 0x4015c1
add esi, 4
cmp esi, 0x41f04c
jb 0x40157a
xor ebx, ebx
jmp 0x401602
lea ecx, [esp + 0x20]
call fcn.00402250
push 0xc
call fcn.004129a7
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
mov byte [esp + 0x26c], 0x11
cmp eax, ebx
je 0x4015f4
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.00402f80
jmp 0x4015f6
xor eax, eax
mov byte [esp + 0x26c], 0x10
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x401622
mov eax, dword [eax]
cmp eax, ebx
je 0x401622
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jne 0x401664
lea ecx, [esp + 0x20]
call fcn.00402250
lea ecx, [esp + 0x1c]
call fcn.00402250
lea ecx, [esp + 0x14]
call fcn.00402250
lea ecx, [esp + 0x274]
call fcn.00402250
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x260
ret
push 0x1c
call fcn.004129a7
add esp, 4
cmp eax, ebx
je 0x40167e
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ebx
mov esi, eax
jmp 0x401680
xor esi, esi
lea ecx, [esp + 0x1c]
lea edi, [esi + 4]
call fcn.00402ec0
mov ecx, edi
call fcn.00402250
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [edi], edx
mov eax, dword [esp + 0x48]
mov dword [esi + 8], eax
lea edi, [esi + 0xc]
call fcn.00402ec0
mov ecx, edi
call fcn.00402250
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x274]
mov dword [esi + 0x14], eax
call fcn.00402ec0
mov ecx, esi
call fcn.00402250
mov ecx, dword [esp + 0x274]
mov dword [esi], ecx
lea ecx, [esp + 0x20]
call fcn.00402250
lea ecx, [esp + 0x1c]
call fcn.00402250
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x401706
call fcn.00403360
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x274]
cmp ecx, ebx
je 0x401716
call fcn.00403360
mov eax, esi
jmp 0x40164b