Function at 0x4b91b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x52212a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x250]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x4b921a
push edi
push 0x569390
push str.option
push eax
call fcn.00496dd0
add esp, 0x10
cmp eax, 3
jbe 0x4b91ff
mov dword [esp + 0x14], 1
inc eax
push eax
mov eax, dword [ebx + 0x250]
push 0x569390
push str.option
push eax
call fcn.00497190
add esp, 0x10
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
push esi
push ebp
mov ecx, ebx
call fcn.004b9060
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
lea ecx, [ebx + 0x14]
push eax
push edx
call fcn.004ba9d0
cmp esi, edi
mov dword [esp + 0x10], edi
jbe 0x4b939f
add ebp, 0x21c
jmp 0x4b9251
xor edi, edi
cmp word [ebp], di
je 0x4b9382
mov cl, byte [esp + 0x50]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov byte [esi], cl
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea edi, [ebp - 0x208]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ecx, esi
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x3c]
push edx
push ebp
mov dword [esp + 0x5c], 0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push eax
lea eax, [ebx + 0x14]
push eax
mov ecx, ebx
mov byte [esp + 0x5c], 2
call fcn.004b9840
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b9382
cmp dword [esp + 0x10], 0x10
jae 0x4b9382
cmp dword [ebp - 0x218], 3
jle 0x4b9382
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x4b92fa
xor edx, edx
jmp 0x4b9310
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, dword [ebx + 0x18]
mov ecx, edx
shl ecx, 5
add ecx, edx
cmp dword [esi + ecx*4 - 4], 1
jne 0x4b9382
mov eax, esi
test eax, eax
jne 0x4b932b
xor edx, edx
jmp 0x4b9341
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, edx
shl ecx, 5
add ecx, edx
lea eax, [esi + ecx*4 - 0x64]
mov eax, dword [esi + ecx*4 - 0x60]
test eax, eax
jne 0x4b9359
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b9382
call fcn.00422af0
mov edx, dword [eax + 4]
push 0xffff
push 0x76d1
push 0x405
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
inc eax
add ebp, 0x1268
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4b924f
xor edi, edi
mov al, byte [esp + 0x50]
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ebp, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, ebp
mov dword [esp + 0x50], eax
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
mov dword [esp + 0x44], 3
shr ecx, 0x1f
add edx, ecx
mov esi, edx
mov dword [esp + 0x4c], esi
je 0x4b948f
lea ecx, [esp + 0x1c]
call fcn.004ba9a0
mov edi, eax
add edi, esi
mov eax, edi
jns 0x4b93f9
xor eax, eax
mov edx, eax
shl edx, 5
add edx, eax
shl edx, 2
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push esi
push 0
push eax
call fcn.004bab60
mov ecx, dword [esp + 0x50]
push eax
push ebp
push ecx
lea ecx, [esp + 0x28]
call fcn.004bab60
mov edx, dword [esp + 0x24]
push eax
push edx
push 0
lea ecx, [esp + 0x28]
call fcn.004bab60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004bab30
mov edx, dword [esp + 0x20]
push edx
call fcn.0051d79a
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
lea ecx, [esi + eax*4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
call fcn.004ba9a0
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x20], esi
add eax, ebp
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [esi + edx*4]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
lea ebp, [ebx + 4]
push ecx
push eax
push eax
call fcn.004bc5f0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push esi
call fcn.004bab30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [ebp + 8], esi
mov dword [esp + 0x50], eax
je 0x4b953c
mov cl, byte [esp + 0x50]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x5c], esp
push 0
mov byte [esi], cl
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x56e1d0
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x4b951d
mov eax, dword [esi + 4]
push edi
push 0x56e1d0
push eax
call fcn.0049d830
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [edx + edi*2], 0
lea eax, [edx + edi*2]
mov esi, dword [esp + 0x60]
mov ecx, ebx
push esi
push ebp
call fcn.004b9840
mov eax, dword [esp + 0x24]
add esi, 0x84
cmp esi, eax
mov dword [esp + 0x50], esi
jne 0x4b94c4
push 0x1e
lea eax, [ebx + 0x14]
push str.often
push eax
mov ecx, ebx
call fcn.004b6ab0
push 0xa
push 0x5691c0
push ebp
mov ecx, ebx
call fcn.004b6ab0
push 1
mov ecx, ebx
call fcn.004ba400
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, eax
mov dword [esp + 0x44], 0xffffffff
mov edi, eax
je 0x4b9593
push 0
mov ecx, esi
call fcn.004bcbb0
add esi, 0x84
cmp esi, edi
jne 0x4b957c
mov esi, dword [esp + 0x20]
push esi
call fcn.0051d79a
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8