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

Disassembly:
push ebp
lea ebp, [esp - 0x478]
sub esp, 0x478
push 0xffffffffffffffff
push 0x427f68
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x435008]
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
call fcn.00403fe0
lea esi, [ebx + 0xc]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x402a8a
mov eax, dword [esi]
test eax, eax
je 0x402a8a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [ebx]
test edi, edi
jne 0x402db6
lea eax, [ebp]
push eax
call fcn.00403480
mov byte [ebp - 4], 1
lea edi, [ebp]
cmp dword [ebp + 0x14], 8
jb 0x402abc
mov edi, dword [ebp]
test edi, edi
je 0x402b8d
cmp word [edi], 0
je 0x402b8d
push 0x412
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.00417710
lea ecx, [ebp + 0x60]
add esp, 0xc
sub ecx, edi
nop
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x402ae0
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.0041735b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402b18
lea eax, [ebp + 0x60]
push 0x2f
push eax
call fcn.0041735b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402b1e
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 0x402b24
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 0x402b58
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 0x402b60
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.00403570
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.00402110
test al, al
jne 0x402bbd
xor edi, edi
jmp 0x402d17
push 0x10
xor eax, eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
lea ecx, [ebp + 0x48]
push str.2345ImageApp.dll
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.00404a00
mov byte [ebp - 4], 3
lea eax, [ebp + 0x48]
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.0040b450
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp + 0x5c]
cmp edx, 8
jb 0x402c42
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402dfc
push edx
push ecx
call fcn.004169b5
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 0x402c66
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x402cc3
cmp dword [ebx], eax
jne 0x402cc3
call fcn.00401cd0
cmp dword [eax], 0
jne 0x402c81
push dword [ebp + 0x480]
mov ecx, eax
call fcn.00401d80
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402caa
test al, 0x10
jne 0x402caa
call fcn.00405780
push 0
push edi
mov ecx, eax
call fcn.00405880
test al, al
jmp 0x402cae
xor edi, edi
jmp 0x402cc5
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x402caa
mov dword [ebx], edi
jmp 0x402cc5
mov edi, dword [ebx]
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x402d03
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402cf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e01
push edx
push ecx
call fcn.004169b5
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 0x402d55
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e06
push edx
push ecx
call fcn.004169b5
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 0x402da2
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e0b
push edx
push ecx
call fcn.004169b5
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 0x402dd5
mov eax, dword [esi]
test eax, eax
je 0x402dce
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.00416294
lea esp, [ebp + 0x478]
pop ebp
ret 8
call fcn.00419bf2
call fcn.00419bf2
call fcn.00419bf2
call fcn.00419bf2
int3