Function at 0x49a560
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a8d70
push eax
mov eax, dword [0x507da4]
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x49aada
mov eax, dword [0x507da0]
cmp dword [eax - 8], ebx
je 0x49aada
mov ecx, dword [esp + 0x110]
push edi
mov esi, 0x4b3ce0
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.00498840
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 1
mov dword [esp + 0xa0], 0x4b3cdc
call fcn.004992f0
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.00498840
lea ecx, [esp + 0x34]
mov byte [esp + 0x104], 4
mov dword [esp + 0x34], 0x4b3cdc
call fcn.004992f0
mov eax, dword [esp + 0x70]
mov byte [esp + 0x104], 5
cmp eax, ebx
pop edi
je 0x49a68e
mov dword [eax], 6
lea ecx, [esp + 8]
test ecx, ecx
je 0x49a6a0
cmp dword [esp + 8], ebx
jne 0x49a72c
lea edx, [esp + 8]
lea eax, [esp + 0x108]
push edx
push 4
push eax
lea ecx, [esp + 0x40]
call fcn.004984f0
cmp eax, 1
je 0x49a6c6
cmp eax, 2
je 0x49a6c6
xor cl, cl
jmp 0x49a6c8
mov cl, 1
cmp eax, ebx
je 0x49a72c
cmp cl, bl
je 0x49a72c
cmp eax, 1
jne 0x49a71c
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x49a6ed
lea ecx, [esp + 0x30]
call fcn.00499190
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.00498710
lea ecx, [esp + 0x108]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.00499210
lea edx, [esp + 8]
test edx, edx
je 0x49a73e
mov dword [esp + 8], eax
jmp 0x49a72c
lea eax, [esp + 8]
test eax, eax
je 0x49a73e
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 8]
test ecx, ecx
je 0x49a73e
cmp dword [esp + 8], ebx
jne 0x49a7c2
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push 4
push eax
lea ecx, [esp + 0x40]
call fcn.004984f0
cmp eax, 1
je 0x49a764
cmp eax, 2
je 0x49a764
xor cl, cl
jmp 0x49a766
mov cl, 1
cmp eax, ebx
je 0x49a7bc
cmp cl, bl
je 0x49a7bc
cmp eax, 1
jne 0x49a825
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x49a78f
lea ecx, [esp + 0x30]
call fcn.00499190
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.00498710
lea ecx, [esp + 0x10c]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.00499210
lea edx, [esp + 8]
test edx, edx
je 0x49a7bc
mov dword [esp + 8], eax
cmp dword [esp + 8], ebx
je 0x49a837
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
mov dword [esp + 0x30], 0x4b3cdc
call fcn.00499c20
lea ecx, [esp + 0x30]
call fcn.00498c80
lea ecx, [esp + 0x10]
call fcn.004987d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.004992c0
lea ecx, [esp + 0x1c]
call fcn.004987d0
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 0x49a7bc
mov dword [esp + 8], 0xffffffff
jmp 0x49a7c2
mov edx, dword [0x507da0]
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 [0x507da4]
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.0049be50
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 0x49a8e8
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.004992c0
lea ecx, [esp + 0x10]
call fcn.004987d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.004992c0
lea ecx, [esp + 0x1c]
call fcn.004987d0
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.00498da0
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.00499af0
cmp dword [esp + 8], ebx
je 0x49a987
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.004992c0
lea ecx, [esp + 0x10]
call fcn.004987d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.004992c0
lea ecx, [esp + 0x1c]
call fcn.004987d0
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 0x49aa0d
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.004992c0
lea ecx, [esp + 0x10]
call fcn.004987d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.004992c0
lea ecx, [esp + 0x1c]
call fcn.004987d0
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 0x49aa83
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 3
call fcn.004992c0
lea ecx, [esp + 0x10]
call fcn.004987d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.004992c0
lea ecx, [esp + 0x1c]
call fcn.004987d0
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.004992c0
lea ecx, [esp + 0x10]
call fcn.004987d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.004992c0
lea ecx, [esp + 0x1c]
call fcn.004987d0
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