Function at 0x418820
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ef768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x60]
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x110], ebx
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 1
call fcn.0044e9a0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x10c], 2
call fcn.0044a000
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString_4
mov al, byte [esp + 0x3b]
mov edx, dword [esp + 0x114]
mov byte [esp + 0x28], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x10c], 4
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCP60.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___unsigned_int_]
lea ecx, [esp + 0x5c]
push 1
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x118], 5
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x10c], 4
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x41891e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x418915
cmp al, 0xff
je 0x418915
dec al
mov byte [ecx], al
jmp 0x41891e
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
jne 0x4189bb
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 6
cmp eax, ebx
je 0x41898d
lea ecx, [esp + 0x9c]
call fcn.0042c1b0
cmp dword [esp + 0xc8], ebx
jne 0x418978
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x418b18
lea ecx, [esp + 0x6c]
call fcn.0042c120
cmp dword [esp + 0x98], ebx
jne 0x4189a4
jmp 0x418b18
lea ecx, [esp + 0x5c]
call fcn.0044f140
cmp eax, 7
je 0x418a62
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 0xa
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 9
cmp eax, ebx
je 0x418a34
lea ecx, [esp + 0x9c]
call fcn.0042c1b0
cmp dword [esp + 0xc8], ebx
jne 0x418a1f
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x418b18
lea ecx, [esp + 0x6c]
call fcn.0042c120
cmp dword [esp + 0x98], ebx
jne 0x418a4b
jmp 0x418b18
push str.user
lea ecx, [esp + 0x60]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x18]
call fcn.0044f040
lea ecx, [esp + 0x14]
call fcn.0044f140
cmp eax, 7
je 0x418b55
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0xe
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 0xd
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 0xc
cmp eax, ebx
je 0x418af3
lea ecx, [esp + 0x9c]
call fcn.0042c1b0
cmp dword [esp + 0xc8], ebx
jne 0x418ade
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x418b18
lea ecx, [esp + 0x6c]
call fcn.0042c120
cmp dword [esp + 0x98], ebx
jne 0x418b06
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 1
call fcn.0044eec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call fcn.0044eec0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10c], 0xffffffff
call fcn.0044eec0
xor eax, eax
jmp 0x419170
mov esi, dword [esp + 0x118]
cmp dword [esi + 0x24], ebx
jne 0x418b7b
push 0x526278
lea ecx, [esp + 0x18]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x9c4]
add ebp, 0xfc
push ebp
push 0x5231b8
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x52623c
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 4], eax
push 0x525f70
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x2c], eax
push str.moralexp
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x30], eax
push str.money
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x38], eax
push str.yellowlevel
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x3c], eax
push str.yellowstatus
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x40], eax
push 0x52627c
call fcn.0044fea0
push eax
call fcn.0040c7d0
lea edi, [esi + 0x18]
mov dword [esi + 0x20], eax
push 0x5307a8
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0xc
test eax, eax
jne 0x418c9f
push str.headPic
lea ecx, [esp + 0x18]
call fcn.0044fea0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c8b0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x110], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 4
call sub.MFC42.DLL_CString::CString
push str.userName
lea ecx, [esp + 0x18]
call fcn.0044fea0
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x110], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 4
call sub.MFC42.DLL_CString::CString
push 0x52630c
lea ecx, [esp + 0x60]
mov dword [esi + 0x4c], ebx
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esi + 0x54], eax
push str.return
push str.beast
call fcn.0044fea0
mov ecx, eax
call fcn.0044fea0
push eax
lea ecx, [esp + 0x18]
call fcn.0044f040
lea ecx, [esp + 0x14]
call fcn.0044f140
cmp eax, 6
jne 0x418e7d
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.0044fc80
test eax, eax
jbe 0x418e7d
push ebp
lea ecx, [esp + 0x18]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x40]
call fcn.0044f040
push 0x526028
lea ecx, [esp + 0x40]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [0x536d10]
add esp, 4
mov ebx, eax
mov edx, dword [ecx + 0x10d0]
test edx, edx
jne 0x418d84
xor eax, eax
jmp 0x418d8f
mov eax, dword [ecx + 0x10d4]
sub eax, edx
sar eax, 2
cmp ebx, eax
jl 0x418dd8
mov esi, ebx
sub esi, eax
inc esi
push 0x5c
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x17
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x536d10]
add esp, 4
mov edx, dword [eax + 0x10d4]
lea ecx, [eax + 0x10cc]
lea eax, [esp + 0x10]
push eax
push 1
push edx
call fcn.0047f0e0
dec esi
jne 0x418d98
mov ecx, dword [0x536d10]
mov eax, dword [ecx + 0x10d0]
push str.raisenum
lea ecx, [esp + 0x40]
mov esi, dword [eax + ebx*4]
mov dword [esi], 1
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x48], eax
push str.status
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x3c], eax
push 0x525f58
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x28], eax
push str.adopttime
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x4c], eax
push str.returntime
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x54], eax
inc ebp
call fcn.0044fc80
cmp ebp, eax
jb 0x418d43
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xf4]
mov byte [esp + 0x10c], 0x11
cmp eax, ebx
je 0x418ebe
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x418eb5
cmp al, 0xff
je 0x418eb5
dec al
mov byte [ecx], al
jmp 0x418ebe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xf4], ebx
cmp eax, ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
je 0x418efb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x418ef2
cmp al, 0xff
je 0x418ef2
dec al
mov byte [ecx], al
jmp 0x418efb
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xd0], ebx
cmp eax, ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
je 0x41903d
mov ecx, dword [esp + 0xa8]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xac], ecx
lea ecx, [eax + 0xc]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0xc8], eax
je 0x418f64
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jne 0x419030
mov eax, dword [esp + 0xac]
mov ecx, eax
add eax, 4
mov dword [esp + 0xac], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xcc]
add esp, 4
cmp eax, ebx
jne 0x418ff0
lea ecx, [esp + 0x28]
call fcn.004051c0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
push edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc0], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x419030
mov eax, dword [esp + 0xac]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x54]
call fcn.0042c610
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
cmp dword [esp + 0xc8], ebx
jne 0x418f1f
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x419135
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
add ecx, 4
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x41907a
cmp ecx, dword [esp + 0x74]
jne 0x419128
mov ecx, dword [esp + 0x7c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x7c], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x9c]
add esp, 4
cmp eax, ebx
jne 0x4190f7
lea ecx, [esp + 0x4c]
call fcn.004051c0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x70], eax
push edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x419128
mov eax, dword [esp + 0x7c]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x30]
call fcn.0042c610
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x98], ebx
jne 0x419054
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 1
call fcn.0044eec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call fcn.0044eec0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10c], 0xffffffff
call fcn.0044eec0
mov eax, 1
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 8