Function at 0x4f1bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563026
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x21c], 0x56e514
mov dword [ebp - 0x20c], 0x56e51c
mov dword [ebp - 0x15c], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov dword [ebp - 4], 1
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x204]
push 0
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x160], 2
call fcn.004e07c0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x220], eax
lea eax, [ebp - 0x204]
mov ecx, eax
mov dword [ebp - 0x15c], eax
call fcn.004e0b30
mov byte [ebp - 4], 4
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 4], 6
cmp dword [esi + 0x14], 0x10
jb 0x4f1d0c
mov esi, dword [esi]
push 0xfde9
lea eax, [ebp - 0x140]
push esi
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], eax
call fcn.004d4f30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x158]
push dword [ebp - 0x144]
call fcn.004bae60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x140]
mov eax, dword [ebp - 0x144]
cmp eax, ecx
je 0x4f1d5b
push eax
call fcn.0052dbc0
add esp, 4
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x4f21e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0xb
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x4f21f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 0xd
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x4f21fa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x145]
call fcn.00509be0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x154]
push ecx
mov ecx, eax
call fcn.00509d10
mov bl, al
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x145]
call fcn.00509c40
or edi, 0xffffffff
test bl, bl
je 0x4f1fda
push 0xfde9
push dword [ebp - 0x154]
lea ecx, [ebp - 0xc4]
call fcn.004df700
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x15c]
push dword [eax]
call fcn.004df4b0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
cmp eax, ecx
je 0x4f1e42
push eax
call fcn.0052dbc0
add esp, 4
mov eax, dword [ebp - 0x15c]
mov edx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea esi, [edx + 1]
mov byte [ebp - 0x28], 0
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4f1e70
sub edx, esi
lea ecx, [ebp - 0x28]
push edx
push eax
call fcn.004cf730
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004f2500
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 0x15
cmp dword [ebx + 0x14], 0x10
jb 0x4f1ea5
mov ebx, dword [ebx]
call fcn.004b98f0
mov ecx, eax
test ecx, ecx
je 0x4f2204
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x14c]
push ebx
call fcn.004bb4d0
test al, al
jne 0x4f1f49
test ebx, ebx
je 0x4f1f3e
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x4f1f3e
mov esi, dword [ebp - 0x14c]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4f1f1b
push edi
lea ecx, [ebp - 0x14c]
call fcn.004bbb80
mov esi, dword [ebp - 0x14c]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x4f220e
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x4f1f4f
lea ecx, [ebp - 0x14c]
call fcn.004bc0f0
mov esi, dword [ebp - 0x14c]
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x40]
call fcn.004c02e0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x28]
call fcn.004c02e0
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
push dword [ebp - 0x158]
test eax, eax
lea eax, [ebp - 0x150]
je 0x4f1f8b
push str._s__error_:0___errormsg_:____wwcmdpath_:__s__
jmp 0x4f1f90
push str._s__error_:1___errormsg_:_path_not_exist___wwcmdpath_:__s__
push eax
call fcn.004c0530
add esp, 0x10
mov byte [ebp - 4], 0x13
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4f1fb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, edi
mov edx, dword [ebp - 0x15c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f1ffa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4f1ffa
push dword [ebp - 0x164]
lea eax, [ebp - 0x150]
push dword [ebp - 0x158]
push str._s__error_:2___errormsg_:__s__
push eax
call fcn.004c0530
add esp, 0x10
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0xc4]
push 0xfde9
push esi
call fcn.004df700
mov byte [ebp - 4], 0x1c
push dword [eax]
lea eax, [ebp - 0x20c]
push eax
call fcn.004d6440
add esp, 8
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
cmp eax, ecx
je 0x4f2043
push eax
call fcn.0052dbc0
add esp, 4
mov ebx, dword [ebp - 0x168]
lea eax, [ebx + 0x68]
mov dword [ebp - 0x168], eax
mov dword [ebx], 0x56e514
mov dword [ebx + 0x10], 0x56e51c
mov dword [eax], vtable.std::ios_base.0
mov byte [ebp - 4], 0x1d
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0x1e
lea eax, [ebx + 0x18]
push 0
push eax
mov ecx, ebx
mov dword [ebp - 0x160], 6
call fcn.004e07c0
mov dword [ebp - 4], 0x1f
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebx + ecx - 4], eax
lea eax, [ebx + 0x18]
mov ecx, eax
mov dword [ebp - 0x168], eax
call fcn.004e0b30
mov byte [ebp - 4], 0x20
mov dword [ebx + 0x18], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x21c]
cmp ebx, ecx
je 0x4f212d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0x22
lea ecx, [ebx + 0x18]
call fcn.004f8340
mov dword [ebx + 0x50], 0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x28]
call fcn.004c02e0
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.00507e40
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x160], 7
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4f2156
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, edi
mov edx, dword [ebp - 0x164]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f2177
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x154]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f2198
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x158]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4f21b7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.004f0020
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
push 0x80004005
call fcn.004b95c0
push 0x80070057
call fcn.004b95c0
int3