Function at 0x401313
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], ecx
cmp byte [esi], 0xef
jne 0x401426
cmp byte [esi + 1], 0xbb
jne 0x401426
cmp byte [esi + 2], 0xbf
jne 0x401426
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add eax, 0xfffffffd
push ebx
lea ecx, [esi + 3]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push eax
push ecx
mov edi, 0xfde9
push ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
jbe 0x4014c6
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x4014c6
mov eax, dword [ebp + 8]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 0xc]
push ebx
push edi
call esi
test eax, eax
jg 0x4013b9
push dword [ebp + 0xc]
call fcn.0040d9a2
jmp 0x401418
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jbe 0x4013af
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4013af
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 4]
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push ebx
push edi
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push ebx
call esi
push dword [ebp + 0xc]
test eax, eax
jg 0x40141e
call fcn.0040d9a2
push edi
call fcn.0040d9a2
pop ecx
pop ecx
jmp 0x4014c6
call fcn.0040d9a2
pop ecx
jmp 0x40144b
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 1]
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push ebx
xor ebx, ebx
mov edi, eax
push ebx
push edi
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
push esi
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0x1c
lea ecx, [ebp - 0xb4]
call fcn.00410cc6
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebp - 8]
push 1
add eax, 8
lea ecx, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410d3f
neg al
sbb al, al
push 1
inc al
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xf], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp byte [ebp + 0xf], bl
je 0x4014b4
push str.json::reader_language_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.0040d9a2
pop ecx
lea ecx, [ebp - 0xb4]
call fcn.004014cd
pop edi
pop esi
pop ebx
leave
ret 8