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

Disassembly:
push ebp
lea ebp, [esp - 0x478]
sub esp, 0x478
push 0xffffffffffffffff
push 0x428728
mov eax, dword fs:[0]
push eax
sub esp, 8
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
call fcn.00405820
lea esi, [ebx + 0xc]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4042ca
mov eax, dword [esi]
test eax, eax
je 0x4042ca
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [ebx]
test edi, edi
jne 0x4045f6
lea eax, [ebp]
push eax
call fcn.00404cc0
mov byte [ebp - 4], 1
lea edi, [ebp]
cmp dword [ebp + 0x14], 8
jb 0x4042fc
mov edi, dword [ebp]
test edi, edi
je 0x4043cd
cmp word [edi], 0
je 0x4043cd
push 0x412
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.00418080
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 0x404320
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.00417ccc
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x404358
lea eax, [ebp + 0x60]
push 0x2f
push eax
call fcn.00417ccc
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40435e
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 0x404364
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 0x404398
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 0x4043a0
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.00404db0
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.00403950
test al, al
jne 0x4043fd
xor edi, edi
jmp 0x404557
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.00401c30
mov byte [ebp - 4], 3
lea eax, [ebp + 0x48]
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.00402000
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp + 0x5c]
cmp edx, 8
jb 0x404482
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404478
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40463c
push edx
push ecx
call fcn.004168f5
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 0x4044a6
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x404503
cmp dword [ebx], eax
jne 0x404503
call fcn.00403510
cmp dword [eax], 0
jne 0x4044c1
push dword [ebp + 0x480]
mov ecx, eax
call fcn.004035c0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4044ea
test al, 0x10
jne 0x4044ea
call fcn.004069c0
push 0
push edi
mov ecx, eax
call fcn.00406ac0
test al, al
jne 0x4044ee
push edi
call fcn.00403670
xor edi, edi
jmp 0x404505
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4044ea
mov dword [ebx], edi
jmp 0x404505
mov edi, dword [ebx]
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x404543
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404539
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404641
push edx
push ecx
call fcn.004168f5
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 0x404595
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40458b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404646
push edx
push ecx
call fcn.004168f5
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 0x4045e2
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4045d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40464b
push edx
push ecx
call fcn.004168f5
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 0x404615
mov eax, dword [esi]
test eax, eax
je 0x40460e
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.004168b4
lea esp, [ebp + 0x478]
pop ebp
ret 8
call fcn.0041a52f
call fcn.0041a52f
call fcn.0041a52f
call fcn.0041a52f
int3