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

Disassembly:
push 0xffffffffffffffff
push 0x4fc805
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebp
mov ebp, ecx
push esi
push 0
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], ebp
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x118], 0
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x118], 1
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x118], 2
call fcn.0044e9a0
lea ecx, [esp + 0x74]
mov byte [esp + 0x114], 3
call fcn.0044a000
lea ecx, [esp + 0xc]
mov byte [esp + 0x114], 4
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x11c]
push str.health_db
mov ecx, esi
mov byte [esp + 0x118], 5
call fcn.0045b960
test eax, eax
jne 0x4a449d
lea ecx, [esp + 0xc]
mov byte [esp + 0x114], 4
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xfc]
mov byte [esp + 0x118], 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 + 0xd8]
mov byte [esp + 0x118], 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 + 0xd0]
mov byte [esp + 0x114], 6
test eax, eax
je 0x4a4428
lea ecx, [esp + 0xa4]
call fcn.0042c1b0
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4a4411
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x114], 3
test eax, eax
je 0x4a444f
lea ecx, [esp + 0x74]
call fcn.0042c120
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x4a443b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], 2
call fcn.0044eec0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x114], 1
call fcn.0044eec0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x114], 0
call fcn.0044eec0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x114], 0xffffffff
call fcn.0044eec0
xor eax, eax
jmp 0x4a48c6
push ebx
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.0045cd80
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x1b]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov esi, eax
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x38]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4a450b
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x64]
push 1
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x128], 9
call fcn.0044a090
and eax, 0xff
push 1
lea ecx, [esp + 0x38]
mov esi, eax
mov byte [esp + 0x120], 5
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 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
xor edi, edi
cmp esi, edi
je 0x4a4565
lea ecx, [esp + 0x64]
call fcn.0044f140
cmp eax, 7
je 0x4a456e
mov dword [esp + 0x1c], edi
jmp 0x4a4736
push str.health_db
lea ecx, [esp + 0x68]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x48]
call fcn.0044f040
lea ecx, [esp + 0x44]
call fcn.0044f140
xor ecx, ecx
cmp eax, 7
sete cl
mov eax, ecx
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x4a4736
mov eax, dword [ebp + 0x114]
lea ebx, [ebp + 0x110]
cmp eax, edi
je 0x4a45bd
mov edi, dword [ebx + 8]
sub edi, eax
sar edi, 2
xor esi, esi
test edi, edi
jle 0x4a45da
mov eax, dword [ebp + 0x114]
mov eax, dword [eax + esi*4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
inc esi
cmp esi, edi
jl 0x4a45c3
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
cmp ecx, ecx
mov eax, ecx
je 0x4a45f4
mov esi, dword [eax]
add eax, 4
mov dword [edx], esi
add edx, 4
cmp eax, ecx
jne 0x4a45e6
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], eax
mov dword [ebx + 8], edx
xor ebp, ebp
call fcn.0044fc80
test eax, eax
jbe 0x4a4734
push ebp
lea ecx, [esp + 0x78]
push 0x5231b8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x74]
lea ecx, [esp + 0x44]
push edx
call fcn.0044fea0
push eax
lea ecx, [esp + 0x58]
call fcn.0044f040
lea ecx, [esp + 0x54]
call fcn.0044f140
cmp eax, 6
jne 0x4a4722
lea ecx, [esp + 0x54]
call fcn.0044fc80
mov edi, eax
xor esi, esi
test edi, edi
jle 0x4a4722
push esi
lea ecx, [esp + 0x58]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x28]
call fcn.0044f040
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
mov dword [eax], ebp
push 0x52d2a4
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 4], eax
push 0x52d2a0
lea ecx, [esp + 0x28]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x24]
push str.time
mov dword [edx + 8], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0xc], eax
push str.earn
lea ecx, [esp + 0x28]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x20]
push ecx
push 1
mov eax, dword [eax + 0x118]
mov ecx, ebx
push eax
call fcn.0047f0e0
inc esi
cmp esi, edi
jl 0x4a4664
lea ecx, [esp + 0x44]
inc ebp
call fcn.0044fc80
cmp ebp, eax
jb 0x4a4611
xor edi, edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x104]
mov byte [esp + 0x11c], 0xa
cmp eax, edi
je 0x4a4777
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a476e
cmp al, 0xff
je 0x4a476e
dec al
mov byte [ecx], al
jmp 0x4a4777
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x104], edi
cmp eax, edi
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], edi
je 0x4a47b4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a47ab
cmp al, 0xff
je 0x4a47ab
dec al
mov byte [ecx], al
jmp 0x4a47b4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xe0], edi
cmp eax, edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
je 0x4a4825
mov eax, dword [esp + 0xb8]
push edi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xbc], eax
call fcn.0042c6f0
mov eax, dword [esp + 0xd8]
dec eax
mov dword [esp + 0xd8], eax
je 0x4a4810
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
cmp edx, eax
jne 0x4a481c
lea ecx, [esp + 0xac]
call fcn.0042c550
cmp dword [esp + 0xd8], edi
jne 0x4a47d4
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x11c], 3
cmp eax, edi
je 0x4a4879
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0xa8]
add ecx, 4
dec eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0xa8], eax
je 0x4a4867
mov eax, ecx
mov ecx, dword [esp + 0x84]
cmp eax, ecx
jne 0x4a4870
lea ecx, [esp + 0x7c]
call fcn.0042c550
cmp dword [esp + 0xa8], edi
jne 0x4a4838
lea ecx, [esp + 0x24]
mov byte [esp + 0x11c], 2
call fcn.0044eec0
lea ecx, [esp + 0x54]
mov byte [esp + 0x11c], 1
call fcn.0044eec0
lea ecx, [esp + 0x44]
mov byte [esp + 0x11c], 0
call fcn.0044eec0
lea ecx, [esp + 0x64]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0044eec0
mov eax, dword [esp + 0x1c]
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x110
ret 4