Function at 0x4a38f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b4546
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 4]
xor esi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea eax, [esp + 0x48]
mov dword [esp + 0x17c], esi
push eax
call fcn.004a0da0
add esp, 4
mov eax, dword [esp + 0x50]
mov byte [esp + 0x17c], 1
cmp eax, esi
je 0x4a3a86
lea edx, [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.004a3d50
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 2
call fcn.00493d90
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x17c], 1
cmp ecx, esi
je 0x4a398c
call fcn.00444d90
cmp dword [esp + 0x1c], esi
jne 0x4a3a90
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unable_to_open_message_catalog:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Unable_to_open_message_catalog:
lea ecx, [esp + 0x30]
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_]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
mov byte [esp + 0x188], 3
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov edi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push eax
mov byte [esp + 0x180], 4
mov dword [esp + 0x18], 0x52b540
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
mov dword [esp + 0x58], ecx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x58]
call fcn.004a3020
mov edx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
mov dword [esp + 0x58], edx
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x17c], 3
call dword [sym.imp.MSVCRT.dll_public_virtual:_void___thiscall_exception::destructor_void_]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 1
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 dword [esp + 0x1c], esi
je 0x4a3ba4
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], 1
mov cl, byte [esp + 0x12]
call fcn.004a3570
mov esi, eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], 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_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x3c]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4a3afa
mov edi, dword [esp + 0x3c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x38]
mov byte [esp + 0x17c], 9
push eax
push ecx
push edx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x34]
call fcn.004a3e30
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
jbe 0x4a3b73
cmp eax, esi
jb 0x4a3b59
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a3b59
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x2c]
add eax, esi
jmp 0x4a3b5e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dl, byte [esp + 0x12]
xor ecx, ecx
mov cl, byte [eax]
inc esi
mov byte [ecx + ebp + 4], dl
mov eax, dword [esp + 0x30]
cmp eax, esi
ja 0x4a3b3f
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x12]
mov edx, dword [esp + 0x14]
inc al
inc edx
cmp al, 0x39
mov byte [esp + 0x12], al
mov dword [esp + 0x14], edx
jb 0x4a3a9d
jmp 0x4a3bcb
mov bl, 1
mov cl, bl
call fcn.004a3570
cmp eax, esi
je 0x4a3bc4
mov cl, byte [eax]
test cl, cl
je 0x4a3bc4
and ecx, 0xff
inc eax
mov byte [ecx + ebp + 4], bl
jne 0x4a3bb1
inc bl
cmp bl, 0x39
jb 0x4a3ba6
mov esi, dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
mov bl, 0x41
lea edi, [ebp + 0x45]
cmp byte [edi], 0
jne 0x4a3c29
mov eax, dword [ebp]
lea ecx, [esp + 0x26]
push ecx
lea edx, [esp + 0x16]
push 1
push edx
push 1
push eax
mov byte [esp + 0x26], bl
call esi
test eax, eax
je 0x4a3c03
test byte [esp + 0x26], 2
je 0x4a3c03
mov byte [edi], 0x16
jmp 0x4a3c29
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x17]
push 1
push edx
push 1
push eax
mov byte [esp + 0x27], bl
call esi
test eax, eax
je 0x4a3c29
test byte [esp + 0x14], 1
je 0x4a3c29
mov byte [edi], 0x17
mov al, bl
inc bl
inc edi
cmp al, 0xff
jne 0x4a3bd6
xor ebx, ebx
xor eax, eax
mov byte [esp + eax + 0x74], al
inc eax
cmp eax, 0x100
jl 0x4a3c36
mov edx, dword [ebp]
lea edi, [ebp + 0x104]
push 0x100
push edi
lea ecx, [esp + 0x7c]
push 0x100
push ecx
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
cmp eax, 0x100
jge 0x4a3c79
mov byte [edi + eax], al
inc eax
cmp eax, 0x100
jl 0x4a3c6e
mov edx, dword [ebp]
lea eax, [ebp + 0x204]
push eax
lea ecx, [esp + 0x78]
push 0x100
push ecx
push 1
push edx
call esi
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4a3cb7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a3cae
cmp al, 0xff
je 0x4a3cae
dec al
mov byte [ecx], al
jmp 0x4a3cb7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x17c], 0xffffffff
je 0x4a3d08
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
mov edx, ecx
test edx, edx
jne 0x4a3d08
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
mov eax, edx
test eax, eax
jne 0x4a3d08
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret