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

Disassembly:
push ebp
lea ebp, [esp - 0x478]
sub esp, 0x478
push 0xffffffffffffffff
push 0x429188
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp + 0x474], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x484]
mov dword [ebp - 0x18], eax
call fcn.0040aca0
lea esi, [ebx + 0xc]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x409733
mov eax, dword [esi]
test eax, eax
je 0x409733
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [ebx]
test edi, edi
jne 0x409a78
lea eax, [ebp]
push eax
call fcn.0040a140
mov byte [ebp - 4], 1
lea edi, [ebp]
cmp dword [ebp + 0x14], 8
jb 0x409765
mov edi, dword [ebp]
test edi, edi
je 0x40983d
cmp word [edi], 0
je 0x40983d
push 0x412
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.004182d0
lea ecx, [ebp + 0x60]
add esp, 0xc
sub ecx, edi
nop word [eax + eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x409790
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.004180ba
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4097c8
lea eax, [ebp + 0x60]
push 0x2f
push eax
call fcn.004180ba
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4097ce
xor eax, eax
mov word [ebx + 2], ax
lea edi, [ebp + 0x60]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4097d4
mov ecx, 8
lea eax, [ebp + 0x60]
mov esi, str.vcruntime140.dll
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x409808
xor eax, eax
mov word [ebx + 2], ax
lea edi, [ebp + 0x60]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409810
mov ecx, 6
lea eax, [ebp + 0x60]
mov esi, str.msvcp140.dll
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [ebx + 8], eax
lea eax, [ebp + 0x30]
push eax
call fcn.0040a230
mov byte [ebp - 4], 2
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x44], 8
push ecx
cmovae eax, dword [ebp + 0x30]
push eax
push dword [ebp + 0x480]
call fcn.00408db0
test al, al
jne 0x40986d
xor edi, edi
jmp 0x4099d9
mov edi, dword [ebp - 0x18]
xor eax, eax
mov ecx, edi
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409897
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp + 0x48]
call fcn.004020b0
mov byte [ebp - 4], 3
lea eax, [ebp + 0x48]
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.00407930
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp + 0x5c]
cmp edx, 8
jb 0x409904
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4098fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409abe
push edx
push ecx
call fcn.00416b45
add esp, 8
xor eax, eax
mov dword [ebp + 0x58], 0
cmp dword [ebp + 0x2c], 8
lea edi, [ebp + 0x18]
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
jb 0x409928
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x409985
cmp dword [ebx], eax
jne 0x409985
call fcn.00408970
cmp dword [eax], 0
jne 0x409943
push dword [ebp + 0x480]
mov ecx, eax
call fcn.00408a20
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40996c
test al, 0x10
jne 0x40996c
call fcn.0040be40
push 0
push edi
mov ecx, eax
call fcn.0040bf40
test al, al
jne 0x409970
push edi
call fcn.00408ad0
xor edi, edi
jmp 0x409987
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40996c
mov dword [ebx], edi
jmp 0x409987
mov edi, dword [ebx]
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x4099c5
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ac3
push edx
push ecx
call fcn.00416b45
add esp, 8
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x44]
cmp edx, 8
jb 0x409a17
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409a0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ac8
push edx
push ecx
call fcn.00416b45
add esp, 8
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov byte [ebp - 4], al
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x409a64
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409a5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409acd
push edx
push ecx
call fcn.00416b45
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x409a97
mov eax, dword [esi]
test eax, eax
je 0x409a90
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x474]
xor ecx, ebp
call fcn.00416b04
lea esp, [ebp + 0x478]
pop ebp
ret 8
call fcn.0041a76f
call fcn.0041a76f
call fcn.0041a76f
call fcn.0041a76f
int3