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

Disassembly:
push 0xffffffffffffffff
push 0x5349a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xbf39a4
lea ecx, [esp + 0xb0]
call fcn.00457220
mov esi, 1
xor ebx, ebx
push esi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x148], ebx
call fcn.00457c30
cmp byte [ebp + 0x180], bl
jne 0x5067c5
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], ebx
call fcn.004597d0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 1
mov dword [esp + 0x3c], ebx
call fcn.004597d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x144], 2
mov dword [esp + 0x54], ebx
call fcn.004597d0
lea ecx, [esp + 0x60]
mov byte [esp + 0x144], 3
mov dword [esp + 0x60], ebx
call fcn.004597d0
lea ecx, [esp + 0x48]
mov byte [esp + 0x144], 4
mov dword [esp + 0x48], ebx
call fcn.004597d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 5
mov dword [esp + 0x18], ebx
call fcn.004597d0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x144], 6
mov dword [esp + 0xa0], ebx
call fcn.004597d0
mov eax, dword [ebp + 0x1d8]
mov byte [esp + 0x144], 7
cmp eax, esi
mov dword [esp + 0x14], esi
jl 0x506616
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xfc]
push eax
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0051a85e
lea edi, [esp + 0x108]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [esp + 0x14]
lea edx, [esi + 1]
push edx
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xfc]
mov edx, dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x505e41
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x144], 8
cmp eax, ebx
jne 0x505e6d
push 0xa
lea ecx, [esp + 0x70]
call fcn.0041c3b0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp ecx, eax
jne 0x505e86
lea edx, [eax + eax]
lea ecx, [esp + 0x6c]
push edx
call fcn.0041c3b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x90]
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
push eax
mov byte [esp + 0x148], 9
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x90]
mov byte [esp + 0x144], 8
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x144], 7
inc ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x505ee2
call fcn.0046f960
mov eax, dword [ebp + 0x1c4]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 - 4]
mov dword [esp + 0x28], ebx
mov al, byte [esi + 0x14]
add esi, 0x14
cmp al, bl
je 0x505f34
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x505f34
lea edx, [edi + 1]
push 1
push edx
lea ecx, [esp + 0x30]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp al, bl
jne 0x505f23
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0xc], edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x144], 0xa
cmp eax, ebx
jne 0x505f4f
push 0xa
lea ecx, [esp + 0x40]
call fcn.0041c3b0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jne 0x505f68
lea edx, [eax + eax]
lea ecx, [esp + 0x3c]
push edx
call fcn.0041c3b0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x94]
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push eax
mov byte [esp + 0x148], 0xb
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x94]
mov byte [esp + 0x144], 0xa
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x144], 7
inc ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x505fc8
call fcn.0046f960
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x1c4]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 - 4]
mov dword [esp + 0x2c], ebx
mov al, byte [esi + 0x34]
add esi, 0x34
cmp al, bl
je 0x50601a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x50601a
lea edx, [edi + 1]
push 1
push edx
lea ecx, [esp + 0x34]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp al, bl
jne 0x506009
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x144], 0xc
cmp eax, ebx
jne 0x506035
push 0xa
lea ecx, [esp + 0x58]
call fcn.0041c3b0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jne 0x50604e
lea edx, [eax + eax]
lea ecx, [esp + 0x54]
push edx
call fcn.0041c3b0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x9c]
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push eax
mov byte [esp + 0x148], 0xd
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x9c]
mov byte [esp + 0x144], 0xc
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x144], 7
inc ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x5060ae
call fcn.0046f960
mov dword [esp + 0x2c], ebx
mov eax, dword [ebp + 0x1c4]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0xa0]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0xc0]
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push eax
call fcn.0051a85e
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x2c]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xbc]
mov ecx, dword [edx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x50610b
mov eax, dword [esp + 0x24]
mov dword [eax + 0xc], esi
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x144], 0xe
mov eax, dword [ecx + edx*4 - 4]
lea ecx, [esp + 0xdc]
mov eax, dword [eax + 0x9c]
mov dword [esp + 0x30], ebx
push eax
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push ecx
call fcn.0051a85e
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [esp + 0x34]
lea edx, [esi + 1]
push edx
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xdc]
mov ecx, dword [ecx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x506181
mov edx, dword [esp + 0x30]
mov dword [edx + 0xc], esi
lea eax, [esp + 0x30]
push 0x5435e8
lea ecx, [esp + 0x7c]
push eax
push ecx
mov byte [esp + 0x150], 0xf
call fcn.0040d870
lea edx, [esp + 0x30]
mov byte [esp + 0x150], 0x10
push edx
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00417d30
add esp, 0x18
mov esi, eax
mov eax, dword [esp + 0x60]
mov byte [esp + 0x144], 0x11
cmp eax, ebx
jne 0x5061e9
push 0xa
lea ecx, [esp + 0x64]
call fcn.0041c3b0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jne 0x506202
lea ecx, [eax + eax]
push ecx
lea ecx, [esp + 0x64]
call fcn.0041c3b0
push esi
lea ecx, [esp + 0x8c]
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x68]
mov byte [esp + 0x148], 0x12
lea ecx, [edx + eax*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x88]
mov byte [esp + 0x144], 0x11
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x144], 0x10
inc ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x84]
cmp ecx, ebx
je 0x506264
call fcn.0046f960
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x144], 0xf
cmp ecx, ebx
je 0x50627d
call fcn.0046f960
mov dword [esp + 0x78], ebx
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x144], 0xe
cmp ecx, ebx
je 0x506296
call fcn.0046f960
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x144], 7
cmp ecx, ebx
je 0x5062af
call fcn.0046f960
mov dword [esp + 0x24], ebx
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4 - 4]
lea ecx, [esp + 0x11c]
mov eax, dword [eax + 0xac]
mov dword [esp + 0x34], ebx
push eax
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push ecx
call fcn.0051a85e
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [esp + 0x38]
lea edx, [esi + 1]
push edx
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x11c]
mov ecx, dword [ecx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x50630c
mov edx, dword [esp + 0x34]
mov dword [edx + 0xc], esi
mov eax, dword [esp + 0x48]
mov byte [esp + 0x144], 0x13
cmp eax, ebx
jne 0x506338
push 0xa
lea ecx, [esp + 0x4c]
call fcn.0041c3b0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jne 0x506350
add eax, eax
lea ecx, [esp + 0x48]
push eax
call fcn.0041c3b0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x9c]
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
mov byte [esp + 0x148], 0x14
lea ecx, [edx + eax*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x98]
mov byte [esp + 0x144], 0x13
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x144], 7
inc ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x5063b0
call fcn.0046f960
mov dword [esp + 0x34], ebx
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4 - 4]
mov eax, dword [eax + 0x94]
cmp eax, 1
jne 0x5064b1
mov al, byte [0x56818c]
mov dword [esp + 0x10], ebx
cmp al, bl
je 0x506418
mov edi, 0x56818c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x506418
lea ecx, [esi + 1]
push 1
push ecx
lea ecx, [esp + 0x18]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov edx, dword [esp + 0x10]
mov ecx, 0x56818c
mov edx, dword [edx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x506407
mov eax, dword [esp + 0x10]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x144], 0x15
cmp eax, ebx
jne 0x506433
push 0xa
lea ecx, [esp + 0x1c]
call fcn.0041c3b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x50644c
lea ecx, [eax + eax]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041c3b0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x8c]
push edx
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x148], 0x16
lea ecx, [eax + ecx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x8c]
mov byte [esp + 0x144], 0x15
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x144], 7
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x5065be
call fcn.0046f960
jmp 0x5065be
cmp eax, 2
jne 0x506580
mov al, byte [0x568188]
mov dword [esp + 0x10], ebx
cmp al, bl
je 0x506505
mov edi, 0x568188
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x506505
lea edx, [esi + 1]
push 1
push edx
lea ecx, [esp + 0x18]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov eax, dword [esp + 0x10]
mov ecx, 0x568188
mov edx, dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x5064f4
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x144], 0x17
cmp eax, ebx
jne 0x506520
push 0xa
lea ecx, [esp + 0x1c]
call fcn.0041c3b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x506539
lea edx, [eax + eax]
lea ecx, [esp + 0x18]
push edx
call fcn.0041c3b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov byte [esp + 0x148], 0x18
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x38]
mov byte [esp + 0x144], 0x17
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x5065b1
push 0x568184
lea ecx, [esp + 0x84]
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
lea eax, [esp + 0x80]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x148], 0x19
call fcn.00507910
lea ecx, [esp + 0x80]
mov byte [esp + 0x144], 7
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [ebp + 0x1c4]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx + esi*4 - 4]
lea ecx, [esp + 0x7c]
add edx, 0x74
push edx
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xa0]
push eax
mov byte [esp + 0x148], 0x1a
call fcn.00507910
lea ecx, [esp + 0x7c]
mov byte [esp + 0x144], 7
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov eax, dword [ebp + 0x1d8]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jle 0x505df4
fld dword [ebp + 0x1c]
fdiv dword [ebp + 0x24]
lea ecx, [esp + 0x3c]
mov dword [ebp + 0x1dc], 0x40800000
mov dword [ebp + 0x1d0], ebx
push ecx
fsub dword [0x535748]
fsub dword [0x5376d4]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [0x535744]
call fcn.0051a9fc
push eax
push ebx
push str.Server_Name
call fcn.0047f630
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.005056f0
fld dword [esp + 0x10]
fmul dword [0x535740]
lea edx, [esp + 0x54]
push edx
call fcn.0051a9fc
push eax
push ebx
push 0x5450c8
call fcn.0047f630
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.005056f0
fld dword [esp + 0x10]
fmul dword [0x53573c]
lea eax, [esp + 0x60]
push eax
call fcn.0051a9fc
push eax
push ebx
push str.Players
call fcn.0047f630
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.005056f0
fld dword [esp + 0x10]
fmul dword [0x535738]
lea ecx, [esp + 0xa0]
push ecx
call fcn.0051a9fc
push eax
push ebx
push str.GameType
call fcn.0047f630
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.005056f0
fld dword [esp + 0x10]
fmul dword [0x535734]
lea edx, [esp + 0x48]
push edx
call fcn.0051a9fc
push eax
push ebx
push str.Ping
call fcn.0047f630
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.005056f0
mov ecx, ebp
call fcn.00505b50
lea ecx, [esp + 0xa0]
mov byte [ebp + 0x180], 1
mov byte [esp + 0x144], 6
call fcn.004597d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 5
call fcn.004597d0
lea ecx, [esp + 0x48]
mov byte [esp + 0x144], 4
call fcn.004597d0
lea ecx, [esp + 0x60]
mov byte [esp + 0x144], 3
call fcn.004597d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x144], 2
call fcn.004597d0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 1
call fcn.004597d0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x144], bl
call fcn.004597d0
lea ecx, [esp + 0xac]
mov dword [esp + 0x144], 0xffffffff
call fcn.00457570
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret