Function at 0x417140
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42bfb2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x8c], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::end_void_]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x30]
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
push esi
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [sym.imp.MSVCR80.dll_toupper]
push ecx
push edx
lea ecx, [esp + 0x34]
push ecx
mov edi, ebx
call fcn.00409ba0
mov esi, dword [esp + 0x34]
add esp, 0x18
lea edx, [esp + 0x20]
add esi, 0x14
push edx
lea ebx, [esp + 0x44]
mov dword [esp + 0x18], esi
call fcn.00417700
mov edi, dword [esp + 0x20]
test edi, edi
mov ebx, dword [esi + 4]
je 0x417231
cmp edi, esi
je 0x417237
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x41725c
test edi, edi
jne 0x417249
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x417254
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 0x28]
jmp 0x417318
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ebx, 1
mov byte [esp + 0x88], bl
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x5c]
call fcn.00417000
push 0x34
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4172b5
xor ecx, ecx
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x1c], edi
mov dword [eax + 0x30], edi
mov dword [eax + 4], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov esi, eax
jmp 0x4172b7
xor esi, esi
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x4172c6
lea eax, [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x14]
push ecx
push edx
push eax
call fcn.00418700
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x10], edi
je 0x4172f7
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
push esi
call fcn.00419530
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x40]
call fcn.00417630
lea ecx, [esp + 0x5c]
mov dword [eax], esi
mov byte [esp + 0x88], 0
call dword [sym.imp.MSVCP80.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 + 0x40]
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00422218
mov esp, ebp
pop ebp
ret 0x18