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

Disassembly:
push ebp
lea ebp, [esp - 0x478]
sub esp, 0x478
push 0xffffffffffffffff
push 0x422f28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x42f008]
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
lea esi, [ebx + 0xc]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x402a85
mov eax, dword [esi]
test eax, eax
je 0x402a85
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0xb
mov edi, dword [ebx]
test edi, edi
jne 0x402c80
lea eax, [ebp + 0x18]
push eax
call fcn.00402cd0
mov byte [ebp - 4], 0xc
lea edi, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
jb 0x402ab7
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x402b8d
cmp word [edi], 0
je 0x402b8d
push 0x412
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.00412b00
lea ecx, [ebp + 0x60]
add esp, 0xc
sub ecx, edi
nop dword [eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x402ae0
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.0041274b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402b18
lea eax, [ebp + 0x60]
push 0x2f
push eax
call fcn.0041274b
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 + 0x48]
push eax
call fcn.00402dc0
mov byte [ebp - 4], 0xd
lea eax, [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
push ecx
cmovae eax, dword [ebp + 0x48]
push eax
push dword [ebp + 0x480]
call fcn.00402110
test al, al
jne 0x402bbd
xor edi, edi
jmp 0x402c68
push str.2345ImageApp.dll
lea ecx, [ebp]
call fcn.00402ff0
mov byte [ebp - 4], 0xe
lea eax, [ebp]
push eax
lea edx, [ebp + 0x48]
lea ecx, [ebp + 0x30]
call fcn.00406ef0
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp]
call fcn.00403250
cmp dword [ebp + 0x44], 8
lea edi, [ebp + 0x30]
jb 0x402bfc
mov edi, dword [ebp + 0x30]
test edi, edi
je 0x402c5a
cmp dword [ebx], 0
jne 0x402c5a
call fcn.00401cd0
cmp dword [eax], 0
jne 0x402c18
push dword [ebp + 0x480]
mov ecx, eax
call fcn.00401d80
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402c41
test al, 0x10
jne 0x402c41
call fcn.00403f10
push 0
push edi
mov ecx, eax
call fcn.00404010
test al, al
jne 0x402c45
push edi
call fcn.00401e30
xor edi, edi
jmp 0x402c5c
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x402c41
mov dword [ebx], edi
jmp 0x402c5c
mov edi, dword [ebx]
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x30]
call fcn.00403250
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x48]
call fcn.00403250
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x18]
call fcn.00403250
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x402c9f
mov eax, dword [esi]
test eax, eax
je 0x402c98
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.00411684
lea esp, [ebp + 0x478]
pop ebp
ret 8