Function at 0x407890
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43149b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
push edi
lea eax, [esp + 0x2c]
push 0x104
push eax
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00429a6a
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0
call fcn.00424bc5
inc eax
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00424b4d
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 1
call fcn.00429b35
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0
call fcn.004299fc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
mov dword [esi + 0x10], 0
call fcn.00429771
push 0x43e814
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 2
call fcn.00429abc
lea ecx, [esp + 8]
mov byte [esp + 0x138], 3
push ecx
lea ecx, [esp + 0x20]
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 2
call fcn.004299fc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.00429771
push 0x43e7ec
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 4
call fcn.00429abc
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x13c], 5
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 4
call fcn.004299fc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00429771
push 0x43e7c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 6
call fcn.00429abc
lea edx, [esp + 8]
mov byte [esp + 0x138], 7
push edx
lea ecx, [esp + 0x24]
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 6
call fcn.004299fc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00429771
push 0x43e7a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 8
call fcn.00429abc
lea ecx, [esp + 8]
mov byte [esp + 0x138], 9
push ecx
lea ecx, [esp + 0x14]
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 8
call fcn.004299fc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x18]
push edx
call fcn.00429771
push 0x43e778
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 0xa
call fcn.00429abc
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x13c], 0xb
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xa
call fcn.004299fc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x28]
call fcn.00429771
push 0x43e754
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 0xc
call fcn.00429abc
lea edx, [esp + 8]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x13c], 0xd
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xc
call fcn.004299fc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
call fcn.00429771
push 0x43e730
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 0xe
call fcn.00429abc
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xf
push ecx
lea ecx, [esp + 0x2c]
call fcn.00429e14
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xe
call fcn.004299fc
lea edx, [esp + 0xc]
push 0x43e720
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00429c91
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0x13c], 0x10
call fcn.00429b35
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xe
call fcn.004299fc
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
call edi
test eax, eax
je 0x407b83
mov dword [esi + 0x10], 1
lea edx, [esp + 0x1c]
jmp 0x407c15
mov eax, dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x407b9c
lea ecx, [esp + 0x14]
mov dword [esi + 0x10], 2
push ecx
jmp 0x407c16
mov edx, dword [esp + 0x20]
push edx
call edi
test eax, eax
je 0x407bb5
lea eax, [esp + 0x20]
mov dword [esi + 0x10], 3
push eax
jmp 0x407c16
mov ecx, dword [esp + 0x10]
push ecx
call edi
test eax, eax
je 0x407bcd
mov dword [esi + 0x10], 2
lea edx, [esp + 0x10]
jmp 0x407c15
mov eax, dword [esp + 0x18]
push eax
call edi
test eax, eax
je 0x407be6
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], 3
push ecx
jmp 0x407c16
mov edx, dword [esp + 0x24]
push edx
call edi
test eax, eax
je 0x407bff
lea eax, [esp + 0x24]
mov dword [esi + 0x10], 3
push eax
jmp 0x407c16
mov ecx, dword [esp + 0x28]
push ecx
call edi
test eax, eax
je 0x407c1e
mov dword [esi + 0x10], 4
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 8]
call fcn.00429b35
mov eax, dword [esi + 0x10]
pop edi
test eax, eax
pop esi
mov byte [esp + 0x130], 0xc
lea ecx, [esp + 0x20]
jne 0x407ccd
call fcn.004299fc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0xa
call fcn.004299fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 8
call fcn.004299fc
lea ecx, [esp + 8]
mov byte [esp + 0x130], 6
call fcn.004299fc
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 4
call fcn.004299fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 2
call fcn.004299fc
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 0
call fcn.004299fc
lea ecx, [esp + 4]
mov dword [esp + 0x130], 0xffffffff
call fcn.004299fc
xor al, al
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
add esp, 0x134
ret
call fcn.004299fc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0xa
call fcn.004299fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 8
call fcn.004299fc
lea ecx, [esp + 8]
mov byte [esp + 0x130], 6
call fcn.004299fc
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 4
call fcn.004299fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 2
call fcn.004299fc
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 0
call fcn.004299fc
lea ecx, [esp + 4]
mov dword [esp + 0x130], 0xffffffff
call fcn.004299fc
mov ecx, dword [esp + 0x128]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x134
ret