Function at 0x490b10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49e7d0
push eax
mov eax, dword [0x4d2274]
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x49108a
mov eax, dword [0x4d2270]
cmp dword [eax - 8], ebx
je 0x49108a
mov ecx, dword [esp + 0x110]
push edi
mov esi, 0x4a4830
push 0xfa000
mov dword [ecx], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x3e800
xor eax, eax
mov dword [esp + 0x28], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x28], 0xfa000
lea edx, [esp + 0x20]
lea ecx, [esp + 0xa0]
push edx
mov dword [esp + 0x108], ebx
call fcn.0048edf0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 1
mov dword [esp + 0xa0], 0x4a482c
call fcn.0048f8a0
push 0x19000
mov byte [esp + 0x108], 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x6400
xor eax, eax
mov dword [esp + 0x1c], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x1c], 0x19000
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
call fcn.0048edf0
lea ecx, [esp + 0x34]
mov byte [esp + 0x104], 4
mov dword [esp + 0x34], 0x4a482c
call fcn.0048f8a0
mov eax, dword [esp + 0x70]
mov byte [esp + 0x104], 5
cmp eax, ebx
pop edi
je 0x490c3e
mov dword [eax], 6
lea ecx, [esp + 8]
test ecx, ecx
je 0x490c50
cmp dword [esp + 8], ebx
jne 0x490cdc
lea edx, [esp + 8]
lea eax, [esp + 0x108]
push edx
push 4
push eax
lea ecx, [esp + 0x40]
call fcn.0048eaa0
cmp eax, 1
je 0x490c76
cmp eax, 2
je 0x490c76
xor cl, cl
jmp 0x490c78
mov cl, 1
cmp eax, ebx
je 0x490cdc
cmp cl, bl
je 0x490cdc
cmp eax, 1
jne 0x490ccc
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x490c9d
lea ecx, [esp + 0x30]
call fcn.0048f740
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.0048ecc0
lea ecx, [esp + 0x108]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.0048f7c0
lea edx, [esp + 8]
test edx, edx
je 0x490cee
mov dword [esp + 8], eax
jmp 0x490cdc
lea eax, [esp + 8]
test eax, eax
je 0x490cee
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 8]
test ecx, ecx
je 0x490cee
cmp dword [esp + 8], ebx
jne 0x490d72
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push 4
push eax
lea ecx, [esp + 0x40]
call fcn.0048eaa0
cmp eax, 1
je 0x490d14
cmp eax, 2
je 0x490d14
xor cl, cl
jmp 0x490d16
mov cl, 1
cmp eax, ebx
je 0x490d6c
cmp cl, bl
je 0x490d6c
cmp eax, 1
jne 0x490dd5
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x490d3f
lea ecx, [esp + 0x30]
call fcn.0048f740
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.0048ecc0
lea ecx, [esp + 0x10c]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.0048f7c0
lea edx, [esp + 8]
test edx, edx
je 0x490d6c
mov dword [esp + 8], eax
cmp dword [esp + 8], ebx
je 0x490de7
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
mov dword [esp + 0x30], 0x4a482c
call fcn.004901d0
lea ecx, [esp + 0x30]
call fcn.0048f230
lea ecx, [esp + 0x10]
call fcn.0048ed80
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.0048f870
lea ecx, [esp + 0x1c]
call fcn.0048ed80
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
add esp, 0xfc
ret
lea eax, [esp + 8]
test eax, eax
je 0x490d6c
mov dword [esp + 8], 0xffffffff
jmp 0x490d72
mov edx, dword [0x4d2270]
lea ecx, [esp + 0x2b]
push ecx
push edx
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edx, dword [0x4d2274]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x94]
push edx
push eax
mov byte [esp + 0x110], 6
call fcn.00492400
add esp, 0x10
lea ecx, [esp + 0x8c]
mov esi, eax
mov byte [esp + 0x100], 5
push 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 esi, ebx
je 0x490e98
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.0048f870
lea ecx, [esp + 0x10]
call fcn.0048ed80
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.0048f870
lea ecx, [esp + 0x1c]
call fcn.0048ed80
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
add esp, 0xfc
ret
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x10], ebx
call fcn.0048f350
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
push 4
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x38], ebx
call fcn.004900a0
cmp dword [esp + 8], ebx
je 0x490f37
lea ecx, [esp + 0xc]
mov byte [esp + 0x100], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.0048f870
lea ecx, [esp + 0x10]
call fcn.0048ed80
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.0048f870
lea ecx, [esp + 0x1c]
call fcn.0048ed80
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
add esp, 0xfc
ret
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.SUCCESS
push edx
call esi
add esp, 8
test eax, eax
jne 0x490fbd
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x100], 5
mov dword [ecx], eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.0048f870
lea ecx, [esp + 0x10]
call fcn.0048ed80
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.0048f870
lea ecx, [esp + 0x1c]
call fcn.0048ed80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
add esp, 0xfc
ret
mov edx, dword [esp + 0xc]
push str.FAILURE
push edx
call esi
add esp, 8
mov byte [esp + 0x100], 5
test eax, eax
lea ecx, [esp + 0xc]
jne 0x491033
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.0048f870
lea ecx, [esp + 0x10]
call fcn.0048ed80
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.0048f870
lea ecx, [esp + 0x1c]
call fcn.0048ed80
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
add esp, 0xfc
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.0048f870
lea ecx, [esp + 0x10]
call fcn.0048ed80
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.0048f870
lea ecx, [esp + 0x1c]
call fcn.0048ed80
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
add esp, 0xfc
ret
mov ecx, dword [esp + 0xf8]
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc
ret