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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53639d
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x24], ebp
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x50ef84
cmp dword [ebp + 0x90], eax
jbe 0x50ecad
mov eax, dword [ebp + 0x6c]
mov edi, dword [eax]
mov esi, dword [ebp + 0x54]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov ebx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x54]
test esi, esi
je 0x50e8be
cmp esi, eax
je 0x50e8c4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x50e970
test esi, esi
jne 0x50e965
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x50e8e7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 0xc]
mov byte [esp + 0x78], 0
mov byte [esp + 0x79], 0
test esi, esi
jne 0x50e96c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x50e909
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x68], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x74], ecx
push eax
lea ecx, [ebp + 0x74]
mov dword [esp + 0x64], ebx
call fcn.0050de20
lea ecx, [esp + 0x18]
call fcn.004fcec0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x50e8b0
mov eax, dword [esi]
jmp 0x50e8dc
mov esi, dword [esi]
jmp 0x50e8fe
lea ecx, [esp + 0x3c]
call fcn.00512fd0
mov dword [esp + 0xa8], 0
mov eax, dword [ebp + 0x8c]
mov eax, dword [eax]
mov esi, dword [ebp + 0x74]
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
lea esp, [esp]
mov ebx, dword [ebp + 0x8c]
mov eax, dword [ebp + 0x74]
test esi, esi
je 0x50e9b1
cmp esi, eax
je 0x50e9b7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x50ea6c
test esi, esi
jne 0x50ea65
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x50e9da
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x5c]
push edx
call fcn.0050cc10
mov byte [esp + 0xa8], 1
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0xa8], 2
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], edi
mov byte [esp + 0xa8], 3
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00511830
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x18]
call fcn.0050d790
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x50e9a0
mov eax, dword [esi]
jmp 0x50e9cf
mov edx, dword [esp + 0x54]
mov ebp, dword [edx]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebp
mov edi, edi
mov edi, dword [esp + 0x54]
test esi, esi
je 0x50ea8e
cmp esi, dword [esp + 0x3c]
je 0x50ea94
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x50ec82
test esi, esi
jne 0x50ebd1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 0x18]
jne 0x50eab5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x2c]
test edi, edi
jne 0x50ebd8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x50ead6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], eax
test edi, edi
jne 0x50ebdf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 0x18]
jne 0x50eaf6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x14]
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
cmp byte [esi + 0x10], al
je 0x50eb13
lea edx, [esi + 0x18]
mov dword [esp + 0x20], edx
cmp byte [esi + 0x11], 0
je 0x50eb20
add esi, 0x1c
mov dword [esp + 0x34], esi
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x4c]
mov ebp, dword [eax]
mov edi, dword [ebx + 0x38]
add ebx, 0x38
nop
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx]
test edi, edi
je 0x50eb3d
cmp edi, eax
je 0x50eb43
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x50ebf1
test edi, edi
jne 0x50ebe6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x50eb66
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 8]
push 0
push 0x5b03b0
push 0x5b033c
push 0
push ecx
call sub.MSVCR90.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50ebb2
mov ecx, dword [esp + 0x38]
call fcn.004f6710
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004fcd80
test al, al
jne 0x50ec6c
test edi, edi
jne 0x50ebed
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x50ebc9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
jmp 0x50eb30
mov esi, dword [esi]
jmp 0x50eaaa
mov eax, dword [edi]
jmp 0x50eacb
mov edi, dword [edi]
jmp 0x50eaeb
mov eax, dword [edi]
jmp 0x50eb5b
mov eax, dword [edi]
jmp 0x50ebbe
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.004f6710
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
push edi
call eax
mov esi, eax
test esi, esi
je 0x50ec6c
mov ecx, edi
call fcn.004f6710
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push edi
mov ecx, esi
call fcn.004fcd80
test al, al
je 0x50ec65
mov ecx, esi
call fcn.004f6710
mov edi, dword [ebx + 0x14]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
mov ecx, ebx
mov dword [esp + 0x24], esi
call fcn.0043b3f0
push 1
mov ecx, ebx
mov ebp, eax
call fcn.0043b4a0
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov ecx, esi
call fcn.004f6830
lea ecx, [esp + 0x28]
call fcn.00409ac0
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x50ea80
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00512f40
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x50ef84
lea ecx, [esp + 0x3c]
call fcn.00512fd0
mov dword [esp + 0xa8], 6
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
mov esi, dword [ebp + 0x54]
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
jmp 0x50ece0
mov ebx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x54]
test esi, esi
je 0x50ecee
cmp esi, eax
je 0x50ecf4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x50ed94
test esi, esi
jne 0x50ed8d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x50ed15
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x5c]
push edx
call fcn.0050cc10
mov byte [esp + 0xa8], 7
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x80]
call fcn.00510d90
mov byte [esp + 0xa8], 8
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x44]
call fcn.00511830
mov byte [esp + 0xa8], 7
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0xa8], 6
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x18]
call fcn.004fcec0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x50ece0
mov esi, dword [esi]
jmp 0x50ed0a
mov eax, dword [esp + 0x54]
mov edi, dword [eax]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x54]
test esi, esi
je 0x50edb4
cmp esi, dword [esp + 0x3c]
je 0x50edba
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x50ef70
test esi, esi
jne 0x50eec9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x50eddb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
test esi, esi
jne 0x50eed0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x50edfc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
test esi, esi
jne 0x50eed7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x50ee1c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x24]
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x4c]
mov ebp, dword [eax]
mov edi, dword [ebx + 0x38]
add ebx, 0x38
mov dword [esp + 0x18], edx
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx]
test edi, edi
je 0x50ee3f
cmp edi, eax
je 0x50ee45
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x50eee9
test edi, edi
jne 0x50eede
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x50ee68
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 8]
push 0
push 0x5b03b0
push 0x5b033c
push 0
push ecx
call sub.MSVCR90.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50eeaa
mov ecx, dword [esp + 0x20]
call fcn.004f6710
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.004fcc40
test al, al
jne 0x50ef5a
test edi, edi
jne 0x50eee5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x50eec1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
jmp 0x50ee32
mov esi, dword [esi]
jmp 0x50edd0
mov eax, dword [esi]
jmp 0x50edf1
mov esi, dword [esi]
jmp 0x50ee11
mov eax, dword [edi]
jmp 0x50ee5d
mov eax, dword [edi]
jmp 0x50eeb6
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.004f6710
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
push edi
call eax
mov esi, eax
test esi, esi
je 0x50ef5a
mov ecx, edi
call fcn.004f6710
mov ecx, dword [esp + 0x18]
push ecx
push edi
mov ecx, esi
call fcn.004fcc40
test al, al
je 0x50ef53
mov ecx, esi
call fcn.004f6710
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
push edi
mov ecx, ebx
mov dword [esp + 0x24], esi
call fcn.0043b3f0
push 1
mov ecx, ebx
mov ebp, eax
call fcn.0043b4a0
mov dword [edi + 4], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], ebp
mov ecx, esi
call fcn.004f6830
lea ecx, [esp + 0x28]
call fcn.00409ac0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x50eda6
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00512f40
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret