Function at 0x403e61
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
xor esi, esi
inc edi
mov dword [ebp - 4], ebx
cmp dword [0x409d48], ebx
je 0x403e9d
mov eax, 0x409d48
push dword [eax]
call fcn.004029b2
test eax, eax
jne 0x403e9a
inc esi
lea eax, [esi*4 + 0x409d48]
cmp dword [eax], ebx
jne 0x403e81
jmp 0x403e9d
mov dword [ebp - 4], edi
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x403eb8
push 0x13
pop ebx
mov edx, 0x409b98
call fcn.0040449f
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403ecb
mov dword [ebp - 4], edi
jmp 0x4042c2
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x403ee8
push 0xc
mov eax, esi
pop ebx
mov edx, 0x4096a4
call fcn.0040449f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x403f03
push 0xe
pop ebx
mov edx, 0x409d0c
call fcn.0040449f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [eax], 0x8c2c033
je 0x403ec3
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x403ec3
mov esi, dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
xor ebx, ebx
push ebx
push 4
lea eax, [ebp - 8]
push eax
push 7
push 0xffffffffffffffff
call esi
test eax, eax
js 0x403f42
cmp dword [ebp - 8], ebx
jne 0x403ec3
push ebx
push 4
lea eax, [ebp - 8]
push eax
push 0x1e
push 0xffffffffffffffff
call esi
test eax, eax
js 0x403f5c
cmp dword [ebp - 8], ebx
jne 0x403ec3
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x403f77
push 0x14
pop ebx
mov edx, 0x409b84
call fcn.0040449f
push 0x80000000
push eax
call fcn.00403216
cmp eax, 0xffffffff
jne 0x403ec3
xor ebx, ebx
xor esi, esi
cmp dword [0x409d1c], ebx
je 0x403fb8
mov eax, 0x409d1c
push dword [eax]
call fcn.00402fd5
test eax, eax
jne 0x403fb5
inc esi
lea eax, [esi*4 + 0x409d1c]
cmp dword [eax], ebx
jne 0x403f9c
jmp 0x403fb8
mov dword [ebp - 4], edi
cmp dword [ebp - 4], ebx
jne 0x4042c2
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
push 0xb
mov dword [ebp - 0x20], eax
pop ebx
test eax, eax
je 0x403fdf
mov edx, 0x409d00
call fcn.0040449f
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x403ffa
mov edx, 0x409cd8
call fcn.0040449f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x404017
push 0xd
mov eax, edi
pop ebx
mov edx, 0x409ce4
call fcn.0040449f
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x404034
push 0xb
mov eax, esi
pop ebx
mov edx, 0x409cf4
call fcn.0040449f
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x40405a
push edi
call ebx
test eax, eax
jne 0x40405a
push esi
call ebx
test eax, eax
je 0x404066
mov dword [ebp - 4], 1
jmp 0x4042c2
push 0x24
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x404083
push 0x20
mov eax, esi
pop ebx
mov edx, 0x409be0
call fcn.0040449f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x4040a1
push 0xc
pop ebx
mov edx, 0x409c00
call fcn.0040449f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4040bf
push 0xc
pop ebx
mov edx, 0x409c0c
call fcn.0040449f
push 0x2c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4040dd
push 0x2b
pop ebx
mov edx, 0x409c18
call fcn.0040449f
push 0x2c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4040fb
push 0x2a
pop ebx
mov edx, 0x409c44
call fcn.0040449f
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x18], eax
test eax, eax
je 0x404119
push 0x2d
pop ebx
mov edx, 0x409c70
call fcn.0040449f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404137
push 0xc
pop ebx
mov edx, 0x409ca0
call fcn.0040449f
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x404154
push 0x13
mov eax, edi
pop ebx
mov edx, 0x409cac
call fcn.0040449f
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x20], eax
test eax, eax
je 0x404172
push 0x16
pop ebx
mov edx, 0x409cc0
call fcn.0040449f
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
call ebx
test eax, eax
jne 0x40405a
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x40405a
push edi
call ebx
test eax, eax
jne 0x40405a
push edi
call esi
test eax, eax
jne 0x40405a
push dword [ebp - 0x20]
call ebx
test eax, eax
jne 0x40405a
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x40405a
and dword [ebp - 4], eax
call fcn.00403112
mov esi, eax
test esi, esi
je 0x4042c2
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x404289
push 9
pop ebx
mov edx, 0x409bac
call fcn.0040449f
mov ecx, eax
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4042ad
test dl, dl
je 0x4042a9
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4042ad
add eax, 2
add ecx, 2
test dl, dl
jne 0x40428d
xor eax, eax
jmp 0x4042b2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4042bd
mov dword [ebp - 4], 1
call fcn.0040469e
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret