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

Disassembly:
push 0xffffffffffffffff
push 0x1003ff36
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
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
lea eax, [esp + 0x48]
mov dword [esp + 0x17c], esi
push eax
call fcn.1003a3c0
add esp, 4
mov eax, dword [esp + 0x50]
mov byte [esp + 0x17c], 1
cmp eax, esi
je 0x1003d4dc
lea edx, [esp + 0x48]
lea ecx, [esp + 0x28]
call fcn.1003d7c0
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x180], 2
call fcn.1002d4e0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x17c], 1
cmp ecx, esi
je 0x1003d3a0
call fcn.100188f0
cmp dword [esp + 0x30], esi
jne 0x1003d4e8
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 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
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
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 0x1003d403
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, str.Unable_to_open_message_catalog:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
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_]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
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 esi, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 4
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], 0x10047afc
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov dl, byte [esi]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 5
mov byte [esp + 0x68], 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 eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [esp + 0x70]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
mov dword [esp + 0x58], edx
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.1003c9f0
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
mov dword [esp + 0x58], eax
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 + 0x1c]
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 eax, dword [esp + 0x30]
test eax, eax
je 0x1003d634
mov bl, 1
mov dword [esp + 0x28], 1
mov cl, bl
call fcn.1003cf80
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov esi, eax
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 ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
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 0x1003d54d
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
push ebp
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 edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
mov byte [esp + 0x17c], 9
mov edx, dword [edi]
push eax
push ecx
push edx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.1003d8a0
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 ecx, dword [esp + 0x20]
xor ebp, ebp
xor esi, esi
cmp ecx, ebp
jbe 0x1003d5e1
cmp ecx, esi
jb 0x1003d5cb
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003d5cb
mov dl, byte [eax - 1]
test dl, dl
je 0x1003d5bb
cmp dl, 0xff
je 0x1003d5bb
push ebp
push ecx
lea ecx, [esp + 0x20]
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_]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003d5c7
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x1c]
add eax, esi
jmp 0x1003d5d0
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]
xor ecx, ecx
inc esi
mov cl, byte [eax]
mov byte [ecx + edi + 4], bl
mov ecx, dword [esp + 0x20]
cmp ecx, esi
ja 0x1003d597
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17c], 1
cmp eax, ebp
je 0x1003d60e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1003d605
cmp al, 0xff
je 0x1003d605
dec al
mov byte [ecx], al
jmp 0x1003d60e
push ecx
call fcn.1002cda0
add esp, 4
mov ecx, dword [esp + 0x28]
inc bl
inc ecx
cmp bl, 0x39
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
jb 0x1003d4f2
mov ebp, dword [esp + 0x14]
jmp 0x1003d65b
mov bl, 1
mov cl, bl
call fcn.1003cf80
test eax, eax
je 0x1003d654
mov cl, byte [eax]
test cl, cl
je 0x1003d654
and ecx, 0xff
inc eax
mov byte [ecx + ebp + 4], bl
jne 0x1003d641
inc bl
cmp bl, 0x39
jb 0x1003d636
mov bl, 0x41
lea edi, [ebp + 0x45]
mov byte [esp + 0x14], bl
cmp byte [edi], 0
jne 0x1003d699
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp]
push esi
mov edx, 2
call fcn.1003dd00
test al, al
je 0x1003d684
mov byte [edi], 0x16
jmp 0x1003d699
mov ecx, dword [ebp]
push esi
mov edx, 1
call fcn.1003dd00
test al, al
je 0x1003d699
mov byte [edi], 0x17
mov dl, bl
inc bl
inc edi
cmp dl, 0xff
mov byte [esp + 0x14], bl
jne 0x1003d664
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0x74], al
inc eax
cmp eax, 0x100
jl 0x1003d6ab
mov ecx, dword [ebp]
lea edi, [ebp + 0x104]
push 0x100
push edi
lea eax, [esp + 0x7c]
push 0x100
push eax
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
cmp eax, 0x100
jge 0x1003d6ee
mov byte [edi + eax], al
inc eax
cmp eax, 0x100
jl 0x1003d6e3
mov ecx, dword [ebp]
lea edx, [ebp + 0x204]
push edx
lea eax, [esp + 0x78]
push 0x100
push eax
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x1003d72e
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x1003d725
cmp al, 0xff
je 0x1003d725
dec al
mov byte [ecx], al
jmp 0x1003d72e
push ecx
call fcn.1002cda0
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x17c], 0xffffffff
je 0x1003d77d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
mov ecx, eax
test ecx, ecx
jne 0x1003d77d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
mov edx, ecx
test edx, edx
jne 0x1003d77d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret