Function at 0x1005a9b0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100951ac
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c6270]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x100]
xor edi, edi
cmp esi, edi
je 0x1005a9ef
cmp esi, 0xffffffff
jne 0x1005aa04
push edi
push 0xcf1
push str..DevContext.cpp
push 0x80070057
call fcn.10002400
mov ebx, dword [esp + 0x104]
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x1005aa27
push edi
push 0xcf2
push str..DevContext.cpp
push 0x80070057
call fcn.10002400
mov ecx, dword [esp + 0x108]
mov edx, dword [ecx]
cmp dword [edx - 0xc], edi
jne 0x1005aa4a
push edi
push 0xcf3
push str..DevContext.cpp
push 0x80070057
call fcn.10002400
cmp byte [esp + 0x114], 0
je 0x1005ac79
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0xa
mov dword [esp + 0xf8], edi
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ecx
push str.NEEDS
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0x100a3860
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edi
call fcn.10001fa0
mov byte [esp + 0xf8], 1
push edi
push edi
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push esi
call fcn.10058ec0
add esp, 0x18
mov byte [esp + 0xf8], 0
lea ecx, [esp + 0x14]
call fcn.10002320
lea ecx, [esp + 0xa4]
push ecx
call fcn.100505c0
add esp, 4
mov byte [esp + 0xf8], 2
mov esi, dword [esp + 0x48]
cmp esi, edi
je 0x1005ac51
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov bl, 8
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x1005acbe
mov edi, esi
mov esi, dword [esi]
lea ecx, [esp + 0x60]
call fcn.10011510
mov byte [esp + 0xf8], 3
mov eax, dword [edi + 8]
sub eax, 0x10
lea edx, [esp + 0x78]
push eax
mov dword [esp + 0x18], edx
call fcn.10002250
add eax, 0x10
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0xf8], 6
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x68]
call fcn.10050af0
mov byte [esp + 0xf8], 7
add eax, 0x18
push eax
lea ecx, [esp + 0x7c]
call fcn.100119a0
mov byte [esp + 0xf8], bl
lea edx, [esp + 0xa0]
mov dword [esp + 0x14], edx
mov byte [esp + 0xf8], bl
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005abb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xf8], 6
lea ecx, [esp + 0x88]
push ecx
call ebp
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.SETUPAPI.dll_SetupOpenAppendInfFileW]
test eax, eax
jne 0x1005abf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1005acd3
mov byte [esp + 0xf8], 0xc
lea edx, [esp + 0x78]
mov dword [esp + 0x14], edx
mov byte [esp + 0xf8], 0xc
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005ac31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xf8], 2
lea ecx, [esp + 0x60]
push ecx
call ebp
xor edi, edi
test esi, esi
jne 0x1005ab00
mov ebx, dword [esp + 0x104]
mov byte [esp + 0xf8], 0
lea ecx, [esp + 0xa4]
call fcn.100115e0
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.100116b0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0xa
mov dword [esp + 0xf8], 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [ebx]
push edi
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.1000ee10
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x1005acd9
mov dword [ecx], eax
jmp 0x1005acdd
push edi
push 0x514
push str.c:dvsp4_build_sw_toolswin32msvc90VC_atlmfcinclude_atlcoll.h
push 0x80004005
call fcn.10002400
push eax
call fcn.1000f9c0
mov dword [esp + 0x20], eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x24], eax
call fcn.100071b0
mov byte [esp + 0xf8], 0x11
cmp dword [esp + 0x28], edi
je 0x1005af4c
mov ebx, dword [esp + 0x10c]
jmp 0x1005ad0a
xor edi, edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.1004eba0
mov byte [esp + 0xf8], 0x12
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], edi
lea ecx, [esi + 0xc]
jl 0x1005ad4a
cmp eax, dword [esi]
jne 0x1005ad4a
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1005ad85
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x1005af8e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.100719d3
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0xf8], 0x14
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1005adb6
push edi
lea ecx, [esp + 0x18]
call fcn.10001de0
mov esi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.1007466d
add esp, 8
push edi
lea ecx, [esp + 0x18]
call fcn.10001e60
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x88]
push ecx
push esi
lea ecx, [esp + 0xd0]
call fcn.1000b330
test eax, eax
je 0x1005ae1f
mov byte [esp + 0xf8], 0x12
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005ae1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1005af19
push 1
push esi
lea ecx, [esp + 0xc8]
call fcn.1000a6e0
mov edi, dword [esp + 0x108]
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x100]
lea ecx, [esp + 0x48]
push ecx
push eax
push edx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1005ae77
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call edx
mov eax, dword [edi]
lea ecx, [esp + 0x48]
push ecx
push eax
mov edx, ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextMatchLineW]
test eax, eax
jne 0x1005ae54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe0000102
jne 0x1005acd3
cmp byte [esp + 0x110], 0
je 0x1005aef5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], ecx
push str.INCLUDE
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0x100a3860
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], 0
call fcn.10001fa0
mov byte [esp + 0xf8], 0x17
push 0
push 0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.10058ec0
add esp, 0x18
mov byte [esp + 0xf8], 0x14
lea ecx, [esp + 0x1c]
call fcn.10002320
mov byte [esp + 0xf8], 0x12
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1005af19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xf8], 0x11
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005af41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x1005ad08
mov byte [esp + 0xf8], 0x10
lea ecx, [esp + 0xc0]
call fcn.10007240
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.100116b0
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret
call fcn.10002140
int3