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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52382c1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], esi
call fcn.05015730
xor edi, edi
mov edx, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], edi
call fcn.05014b60
mov edx, esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x230], 1
call fcn.05014810
mov byte [esp + 0x230], 2
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, edi
mov dword [esp + 0x2c], ebx
jle 0x5018b46
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x5018794
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x1b4]
call fcn.05001440
mov byte [esp + 0x230], 3
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub ecx, esi
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x50187d3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
cmp dword [ebx + esi + 0x1c], 0x10
jb 0x50187e0
mov esi, dword [ebx + esi + 8]
jmp 0x50187e4
lea esi, [ebx + esi + 8]
push esi
lea ecx, [esp + 0x1b8]
call dword [sym.imp.MSVCP90.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__]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x5018817
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx + 0x98]
push eax
lea ecx, [esp + 0x1e4]
call dword [0x523a2b0]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebx, esi
sub ebx, ecx
mov eax, 0xb21642c9
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5018861
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx + 0x8c]
mov dword [esp + 0x1d0], eax
mov ebx, esi
sub ebx, ecx
mov eax, 0xb21642c9
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x501889c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx + 0x90]
mov dword [esp + 0x1d4], eax
mov ebx, esi
sub ebx, ecx
mov eax, 0xb21642c9
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x50188d7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov dx, word [ebx + ecx + 0x94]
sub esi, ecx
mov word [esp + 0x1d8], dx
mov eax, 0xb21642c9
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x501890e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x1f8], 0x10
mov cl, byte [ebx + ecx + 0xb4]
mov eax, dword [esp + 0x1e4]
mov byte [esp + 0x1dc], cl
mov byte [esp + 0x1da], 0
mov byte [esp + 0x1db], 0
jae 0x5018944
lea eax, [esp + 0x1e4]
mov edx, dword [esp + 0x38]
push eax
push edx
call fcn.0500c260
add esp, 8
test eax, eax
je 0x50189ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
push eax
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x34]
push edx
lea esi, [esp + 0x4c]
mov byte [esp + 0x238], 4
call fcn.05018ce0
lea ecx, [esp + 0x64]
mov byte [esp + 0x230], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
test esi, esi
je 0x50189ad
cmp esi, dword [esp + 0x44]
je 0x50189b3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x34], ebx
je 0x50189ed
test esi, esi
jne 0x5018bd2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x18]
jne 0x50189d6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x1fc]
add ecx, 0x28
push edx
call fcn.05017ef0
add esp, 4
sub esp, 0x68
mov eax, esp
mov dword [esp + 0xa8], esp
push eax
lea ecx, [esp + 0x220]
call fcn.050014e0
mov byte [esp + 0x298], 5
mov ecx, dword [esp + 0x8c]
sub ecx, dword [esp + 0x88]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x5018a39
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x88]
sub esp, 0x1c
lea eax, [ebx + edx + 4]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call dword [sym.imp.MSVCP90.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__]
lea esi, [esp + 0x1b4]
mov byte [esp + 0x2b4], 3
call fcn.050030d0
add esp, 0x84
mov esi, eax
push esi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x234], 6
call dword [sym.imp.MSVCP90.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__]
lea edx, [esp + 0xc8]
lea ecx, [esi + 0x1c]
push edx
mov byte [esp + 0x234], 7
call fcn.050014e0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0xa4]
push ecx
push edx
mov byte [esp + 0x23c], 8
call fcn.05001920
lea ecx, [esp + 0xc8]
mov byte [esp + 0x230], 9
call fcn.05001620
lea ecx, [esp + 0xac]
mov byte [esp + 0x230], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14c]
mov byte [esp + 0x230], 0xa
call fcn.05001620
lea ecx, [esp + 0x130]
mov byte [esp + 0x230], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x230], 2
call fcn.05001620
inc edi
add ebx, 0xb8
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
jl 0x5018790
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x44]
mov byte [esp + 0x230], 0xb
call fcn.05015a20
mov eax, dword [esp + 0x44]
push eax
call sub.mfc90.dll_Ordinal_800
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x234], 0xc
call fcn.05015cb0
mov edx, dword [esp + 0x14]
push edx
call sub.mfc90.dll_Ordinal_800
add esp, 4
lea esi, [esp + 0x80]
mov dword [esp + 0x230], 0xd
call fcn.05015a20
mov eax, dword [esp + 0x80]
push eax
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0520b902
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi]
jmp 0x50189c7