Function at 0x415ea3
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4624e5
call fcn.004571ec
sub esp, 0x228
push ebx
push esi
mov esi, ecx
push edi
push 0
lea ecx, [ebp - 0x50]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x50], 0x469494
push eax
mov dword [ebp - 0x30], 0x46948c
call fcn.00404b2e
and dword [ebp - 4], 0
cmp byte [esi + 0x71], 0
mov edi, dword [ebp + 8]
je 0x415edc
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x50]
push eax
call fcn.00411942
lea eax, [ebp - 0x50]
push 4
push eax
call fcn.0041619c
pop ecx
mov byte [ebp + 0xb], al
pop ecx
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 4]
push dword [ecx + esi + 8]
lea ecx, [ebp - 0x234]
push eax
mov eax, dword [esi + 0x6c]
shr eax, 0xe
and al, 1
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00416203
lea eax, [ebp - 0x114]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00417e3f
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004180ae
add esp, 0xc
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.00416498
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.004060f2
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 5
call fcn.004060f2
mov ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x7c]
shr ebx, 0xe
and bl, 1
mov dword [ebp - 0x28], eax
test eax, eax
je 0x415f7e
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
and byte [ebp - 0x23], 0
mov byte [ebp - 0x24], bl
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x7c]
shr ecx, 0xe
and cl, 1
push 1
mov byte [ebp - 0x10], cl
lea ecx, [ebp - 0x18]
push dword [ebp - 0x10]
mov byte [ebp - 4], 7
push eax
call fcn.00416acc
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 8
call fcn.00418118
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
mov byte [ebp - 4], 7
je 0x415fd1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 5
test eax, eax
je 0x415fe2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x6c]
push edi
and eax, 0x331
lea ecx, [ebp - 0x234]
push eax
call fcn.004184e5
test al, al
je 0x4160ac
lea ecx, [ebp - 0x50]
call fcn.00405610
mov esi, dword [esi + 0x78]
mov eax, dword [eax]
push eax
push esi
mov ecx, dword [esi]
call dword [ecx + 0x34]
mov esi, eax
cmp esi, 0x80042000
je 0x41608c
cmp esi, 0x80042001
je 0x41608c
cmp esi, 0x80004004
je 0x41608c
cmp dword [edi + 0x50], 0
lea eax, [edi + 0x4c]
jne 0x41603c
cmp dword [eax + 8], 0xffffffff
je 0x41604a
push eax
lea ecx, [ebp - 0xe0]
call fcn.0041655b
jmp 0x416055
lea ecx, [ebp - 0xe0]
call fcn.00416652
lea ecx, [ebp - 0x234]
call fcn.004286b1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00415a15
pop ecx
lea eax, [edi + 0x44]
pop ecx
push eax
lea ecx, [ebp - 0x234]
push dword [edi + 0x40]
call fcn.004288f2
jmp 0x41613e
lea ecx, [ebp - 0x20]
call fcn.00457b55
lea eax, [ebp - 0x20]
push 0x46e9c8
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0x469bcc
call fcn.00457c2c
mov ebx, dword [edi + 0x38]
mov edi, dword [edi + 0x3c]
test edi, edi
jl 0x41611a
jg 0x4160c0
cmp ebx, 0x7fffffff
jbe 0x41611a
mov eax, dword [esi + 0x78]
push 0x7fffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp eax, 0x80042000
mov dword [ebp - 0x10], eax
je 0x4160f7
cmp eax, 0x80042001
je 0x4160f7
cmp eax, 0x80004004
je 0x4160f7
add ebx, 0x80000001
adc edi, 0xffffffff
test edi, edi
jg 0x4160c0
jl 0x41611a
jmp 0x4160b8
lea ecx, [ebp - 0x20]
call fcn.00457b55
mov eax, dword [ebp - 0x10]
push 0x46e9c8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x469bcc
call fcn.00457c2c
mov esi, dword [esi + 0x78]
push ebx
push esi
mov eax, dword [esi]
call dword [eax + 0x1c]
mov esi, eax
cmp esi, 0x80042000
je 0x41617c
cmp esi, 0x80042001
je 0x41617c
cmp esi, 0x80004004
je 0x41617c
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.004164f6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004285c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
lea ecx, [ebp - 0x20]
call fcn.00457b55
lea eax, [ebp - 0x20]
push 0x46e9c8
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0x469bcc
call fcn.00457c2c