Function at 0x4162d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4453e9
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x4587e8]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4587e8]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
jne 0x416325
xor al, al
jmp 0x416919
call fcn.00418670
mov edx, edi
lea ecx, [esp + 0x1a8]
call fcn.0040df40
mov dword [esp + 0x1e8], 0
cmp dword [eax + 0x10], 0
jne 0x41634d
xor al, al
jmp 0x416362
cmp dword [eax + 0x14], 8
jb 0x416355
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x1e8], 0xffffffff
cmp dword [esp + 0x1bc], 8
jb 0x416393
push dword [esp + 0x1a8]
call fcn.00423c7d
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1bc], 7
mov dword [esp + 0x1b8], 0
mov word [esp + 0x1a8], cx
test al, al
je 0x41642a
mov edx, edi
lea ecx, [esp + 0x1a8]
mov byte [0x45b0f5], 1
call fcn.0040df40
mov dword [esp + 0x1e8], 1
mov ecx, eax
call fcn.004052b0
mov byte [ebx + 0xc], al
mov dword [esp + 0x1e8], 0xffffffff
cmp dword [esp + 0x1bc], 8
jb 0x416405
push dword [esp + 0x1a8]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [esp + 0x1bc], 7
mov dword [esp + 0x1b8], 0
mov word [esp + 0x1a8], ax
jmp 0x416916
xor eax, eax
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], ecx
push eax
mov dword [esp + 0x1bc], ecx
push 0x44fdac
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x1c4], 7
mov word [esp + 0x1b0], ax
call fcn.00403620
mov dword [esp + 0x1e8], 2
lea eax, [esp + 0x1a8]
push eax
lea edx, [esp + 0x198]
lea ecx, [esp + 0xdc]
call fcn.00411700
add esp, 4
mov dword [esp + 0x1e8], 0xffffffff
cmp dword [esp + 0x1bc], 8
jb 0x4164b3
push dword [esp + 0x1a8]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov ecx, esi
mov dword [esp + 0x1bc], 7
mov dword [esp + 0x1b8], 0
mov word [esp + 0x1a8], ax
call fcn.00402800
push eax
push 0
push 0
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x416526
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x416526
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416526
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416916
push ecx
lea ecx, [esp + 0x20]
call fcn.00407450
mov dword [esp + 0x1e8], 3
cmp dword [edi + 0x14], 0x10
jb 0x416545
mov eax, dword [edi]
jmp 0x416547
mov eax, edi
cmp dword [esp + 0x7c], 0
jne 0x4165d5
push 0x40
push 1
push eax
call fcn.00423bba
add esp, 0xc
test eax, eax
je 0x4165d5
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.00407ab0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.00408080
mov byte [esp + 0x1e8], 4
push eax
call fcn.00408570
add esp, 4
lea ecx, [esp + 0x2c]
push eax
call fcn.00407d10
mov byte [esp + 0x1e8], 3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4165b9
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x4165b9
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
jmp 0x4165f1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4165f1
or eax, 4
and eax, 0x17
test dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
je 0x416603
push 0
call fcn.00404e10
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x7c], 0
je 0x416740
sub esp, 8
lea ecx, [esp + 0xec]
call fcn.004170e0
mov byte [esp + 0x1e8], 5
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xf8]
call fcn.00416ec0
lea ecx, [esp + 0x2c]
call fcn.00407a00
test eax, eax
jne 0x41667f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x41666d
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x41667f
push 0
call fcn.00404e10
lea eax, [esp + 0x1c0]
push eax
lea ecx, [esp + 0xe8]
call fcn.00417280
mov byte [esp + 0x1e8], 6
lea eax, [esp + 0x1c0]
push eax
push edi
call fcn.0041cde0
cmp dword [esp + 0x1d0], 0
jne 0x416759
mov byte [ebx + 0xc], 1
mov byte [esp + 0x1e8], 5
cmp dword [esp + 0x1d4], 0x10
jb 0x4166dc
push dword [esp + 0x1c0]
call fcn.00423c7d
add esp, 4
mov dword [esp + 0x1d4], 0xf
mov dword [esp + 0x1d0], 0
mov byte [esp + 0x1c0], 0
mov byte [esp + 0x1e8], 3
lea ecx, [esp + 0x14c]
call fcn.004171b0
lea eax, [esp + 0x14c]
mov dword [esp + 0x14], eax
mov dword [esp + method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1e8], 3
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00423a99
add esp, 4
mov dword [esp + 0x1e8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00405200
jmp 0x416916
lea eax, [esp + 0x1c0]
push eax
mov ecx, ebx
call fcn.00418780
mov byte [ebx + 0xc], al
mov byte [esp + 0x1e8], 5
cmp dword [esp + 0x1d4], 0x10
jb 0x41678c
push dword [esp + 0x1c0]
call fcn.00423c7d
add esp, 4
mov dword [esp + 0x1d4], 0xf
mov dword [esp + 0x1d0], 0
mov byte [esp + 0x1c0], 0
mov byte [esp + 0x1e8], 3
lea ecx, [esp + 0x14c]
call fcn.004171b0
lea eax, [esp + 0x14c]
mov dword [esp + 0x14], eax
mov dword [esp + method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1e8], 3
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00423a99
add esp, 4
mov dword [esp + 0x1e8], 0xffffffff
lea eax, [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x1c], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x18], eax
mov dword [esp + 0x1e8], 9
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1e8], 0xb
cmp dword [esp + 0x7c], 0
je 0x416871
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x70]
cmp dword [edx], eax
jne 0x416871
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
mov eax, dword [esp + 0x58]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [esp + 0x78], 0
je 0x416881
lea ecx, [esp + 0x2c]
call fcn.00407a00
mov byte [esp + 0x1e8], 9
mov esi, dword [esp + 0x60]
mov dword [esp + 0x2c], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x4168b9
mov ecx, dword [esi]
test ecx, ecx
je 0x4168b0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x4168b0
mov eax, dword [ecx]
push 1
call dword [eax]
push esi
call fcn.00423c7d
add esp, 4
mov dword [esp + 0x1e8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x1c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [esp + ecx + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x8c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x1e8], 0xffffffff
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00423a99
add esp, 4
mov al, byte [ebx + 0xc]
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.00423c82
mov esp, ebp
pop ebp
ret 8