Function at 0x403cb0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x47494c
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x498e00]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498e00]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov ebp, ecx
push 0x47af74
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
call fcn.00402d60
xor edi, edi
push 0x47af74
lea ecx, [esp + 0x24]
mov dword [esp + 0x178], edi
call fcn.00402d60
mov eax, dword [esp + 0x180]
mov ebx, 1
mov byte [esp + 0x174], bl
lea esi, [ebp + 0x78]
cmp eax, 3
jne 0x403d9d
push 0x49a29c
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00402740
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 2
call fcn.00402680
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x174], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x49a2a4
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
mov byte [esp + 0x174], 3
jmp 0x403e79
cmp eax, edi
jne 0x403e0a
push 0x49a2a0
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 4
call fcn.00402680
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x174], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x49a2a4
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
mov byte [esp + 0x174], 5
jmp 0x403e79
cmp eax, ebx
jne 0x403eb3
push 0x49a2a8
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 6
call fcn.00402680
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x174], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x49a2ac
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
mov byte [esp + 0x174], 7
push eax
lea ecx, [esp + 0x24]
call fcn.00402680
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x174], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403f74
cmp eax, 2
jne 0x403f0a
push 0x49a2b0
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 8
call fcn.00402680
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], bl
call fcn.00401100
push 0x49a2b4
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00402740
add esp, 0xc
mov byte [esp + 0x174], 9
jmp 0x403f5a
push 0x49a2a0
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00402740
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 0xa
call fcn.00402680
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], bl
call fcn.00401100
push 0x49a2a4
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402740
add esp, 0xc
mov byte [esp + 0x174], 0xb
push eax
lea ecx, [esp + 0x24]
call fcn.00402680
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], bl
call fcn.00401100
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
push 0
push edx
mov edx, dword [ecx + 0x497088]
push eax
push edx
push 0
mov ecx, ebp
call fcn.00401c60
test eax, eax
jne 0x404342
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4043d5
test eax, eax
je 0x404342
mov eax, dword [esp + 0x180]
test eax, eax
jne 0x4040ab
cmp dword [esp + 0x17c], eax
jne 0x404041
push 0x49a2bc
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00402740
mov ebp, eax
push 0x49a2a0
lea ecx, [esp + 0x50]
push esi
push ecx
mov byte [esp + 0x18c], 0xc
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
jmp 0x40418a
push 0x49a2c0
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00402740
mov ebp, eax
push 0x49a2a4
lea edx, [esp + 0x58]
push esi
push edx
mov byte [esp + 0x18c], 0xd
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
jmp 0x40418a
cmp eax, 3
jne 0x4041b6
cmp dword [esp + 0x17c], 0
jne 0x404125
push 0x49a2b8
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.00402740
mov ebp, eax
push 0x49a29c
lea edx, [esp + 0x68]
push esi
push edx
mov byte [esp + 0x18c], 0xe
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40411f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
jmp 0x40418a
push 0x49a2c0
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00402740
mov ebp, eax
push 0x49a2a4
lea edx, [esp + 0x60]
push esi
push edx
mov byte [esp + 0x18c], 0xf
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x174], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40432b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40432b
cmp eax, ebx
jne 0x40426e
cmp dword [esp + 0x17c], 0
jne 0x40421b
push 0x49a2c4
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00402740
mov ebp, eax
push 0x49a2a8
lea edx, [esp + 0x70]
push esi
push edx
mov byte [esp + 0x18c], 0x10
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
lea ecx, [esp + 0x60]
call fcn.00401100
lea ecx, [esp + 0x28]
jmp 0x40431f
push 0x49a2c8
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00402740
mov ebp, eax
push 0x49a2ac
lea ecx, [esp + 0x3c]
push esi
push ecx
mov byte [esp + 0x18c], 0x11
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
lea ecx, [esp + 0x2c]
call fcn.00401100
lea ecx, [esp + 0x34]
jmp 0x40431f
cmp eax, 2
jne 0x40456c
cmp dword [esp + 0x17c], 0
jne 0x4042d1
push 0x49a2cc
lea edx, [esp + 0x48]
push esi
push edx
call fcn.00402740
mov ebp, eax
push 0x49a2b0
lea eax, [esp + 0x4c]
push esi
push eax
mov byte [esp + 0x18c], 0x12
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
lea ecx, [esp + 0x3c]
call fcn.00401100
lea ecx, [esp + 0x44]
jmp 0x40431f
push 0x49a2d0
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.00402740
mov ebp, eax
push 0x49a2b4
lea edx, [esp + 0x5c]
push esi
push edx
mov byte [esp + 0x18c], 0x13
call fcn.00402740
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ebx
push ebp
push eax
call edi
lea ecx, [esp + 0x4c]
call fcn.00401100
lea ecx, [esp + 0x54]
mov byte [esp + 0x174], bl
call fcn.00401100
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x497088]
push ecx
call fcn.00402e20
mov ebp, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
cmp eax, 8
jb 0x403f7e
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40437e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00448544
add esp, 0x164
ret 8
mov eax, dword [esp + 0x180]
test eax, eax
jne 0x40442f
cmp dword [esp + 0x17c], eax
jne 0x404424
push 0x49a2a0
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00402740
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x74]
push str.Fail_to_find__s
push ecx
call fcn.00401390
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40449e
push 0x49a2a4
lea ecx, [esp + 0x1c]
jmp 0x40446e
cmp eax, 3
jne 0x404450
cmp dword [esp + 0x17c], 0
lea ecx, [esp + 0x18]
jne 0x404449
push 0x49a29c
jmp 0x40446e
push 0x49a2a4
jmp 0x40446e
cmp eax, ebx
jne 0x4044ac
cmp dword [esp + 0x17c], 0
lea ecx, [esp + 0x18]
jne 0x404469
push 0x49a2a8
jmp 0x40446e
push 0x49a2ac
push esi
push ecx
call fcn.00402740
mov edx, dword [eax]
push edx
lea eax, [esp + 0x74]
push str.Fail_to_find__s
push eax
call fcn.00401390
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404504
cmp eax, 2
jne 0x4044f2
cmp dword [esp + 0x17c], 0
lea ecx, [esp + 0x18]
jne 0x4044c6
push 0x49a2b0
jmp 0x4044cb
push 0x49a2b4
push esi
push ecx
call fcn.00402740
mov edx, dword [eax]
push edx
lea eax, [esp + 0x74]
push str.Fail_to_find__s
push eax
call fcn.00401390
add esp, 0x18
lea ecx, [esp + 0x18]
call fcn.00401100
jmp 0x404504
lea ecx, [esp + 0x64]
push str.Error_Platform_
push ecx
call fcn.00401390
add esp, 8
push 0
push 0
lea edx, [esp + 0x6c]
push edx
call fcn.0040812c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40453a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4043ab
push 0
push 0
push str.Error_Platform_
call fcn.0040812c
lea ecx, [esp + 0x20]
call fcn.00401100
lea ecx, [esp + 0x1c]
call fcn.00401100
xor eax, eax
jmp 0x4043ab