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

Disassembly:
push 0xffffffffffffffff
push 0x530bae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xbb0794
lea ecx, [esp + 0xac]
call fcn.00454a70
mov esi, 1
xor ebx, ebx
push esi
lea ecx, [esp + 0xac]
mov dword [esp + 0x144], ebx
call fcn.00455480
cmp byte [ebp + 0x180], bl
jne 0x502bc8
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], ebx
call fcn.00457020
lea ecx, [esp + 0x54]
mov byte [esp + 0x140], 1
mov dword [esp + 0x54], ebx
call fcn.00457020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 2
mov dword [esp + 0x3c], ebx
call fcn.00457020
lea ecx, [esp + 0x60]
mov byte [esp + 0x140], 3
mov dword [esp + 0x60], ebx
call fcn.00457020
lea ecx, [esp + 0x48]
mov byte [esp + 0x140], 4
mov dword [esp + 0x48], ebx
call fcn.00457020
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 5
mov dword [esp + 0x30], ebx
call fcn.00457020
lea ecx, [esp + 0x9c]
mov byte [esp + 0x140], 6
mov dword [esp + 0x9c], ebx
call fcn.00457020
mov eax, dword [ebp + 0x1d8]
mov byte [esp + 0x140], 7
cmp eax, esi
mov dword [esp + 0x14], esi
jl 0x502a32
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xf8]
push eax
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push ecx
mov dword [esp + 0x1c], ebx
call fcn.00516c8e
lea edi, [esp + 0x104]
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 + 0xf8]
mov edx, dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x5022c1
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x70]
mov byte [esp + 0x140], 8
cmp eax, ebx
jne 0x5022ed
push 0xa
lea ecx, [esp + 0x74]
call fcn.0041c000
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
cmp ecx, eax
jne 0x502306
lea edx, [eax + eax]
lea ecx, [esp + 0x70]
push edx
call fcn.0041c000
lea eax, [esp + 0x10]
lea ecx, [esp + 0x98]
push eax
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
push eax
mov byte [esp + 0x144], 9
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x98]
mov byte [esp + 0x140], 8
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x74]
mov byte [esp + 0x140], 7
inc ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x502362
call fcn.0046c950
mov eax, dword [ebp + 0x1c4]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 - 4]
mov dword [esp + 0x20], ebx
mov al, byte [esi + 0x14]
add esi, 0x14
cmp al, bl
je 0x5023b4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x5023b4
lea edx, [edi + 1]
push 1
push edx
lea ecx, [esp + 0x28]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp al, bl
jne 0x5023a3
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0xc], edi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x140], 0xa
cmp eax, ebx
jne 0x5023cf
push 0xa
lea ecx, [esp + 0x58]
call fcn.0041c000
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jne 0x5023e8
lea edx, [eax + eax]
lea ecx, [esp + 0x54]
push edx
call fcn.0041c000
lea eax, [esp + 0x20]
lea ecx, [esp + 0x8c]
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 + 0x144], 0xb
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x8c]
mov byte [esp + 0x140], 0xa
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x140], 7
inc ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x502448
call fcn.0046c950
mov dword [esp + 0x20], 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 0x50249a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x50249a
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 0x502489
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x140], 0xc
cmp eax, ebx
jne 0x5024b5
push 0xa
lea ecx, [esp + 0x40]
call fcn.0041c000
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jne 0x5024ce
lea edx, [eax + eax]
lea ecx, [esp + 0x3c]
push edx
call fcn.0041c000
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x90]
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 + 0x144], 0xd
lea ecx, [ecx + edx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x90]
mov byte [esp + 0x140], 0xc
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x140], 7
inc ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x50252e
call fcn.0046c950
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 + 0x18], ebx
push eax
lea eax, [esp + 0xbc]
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push eax
call fcn.00516c8e
lea edi, [esp + 0xc4]
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 + 0x20]
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xb8]
mov ecx, dword [edx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x50258b
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], esi
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x140], 0xe
mov eax, dword [ecx + edx*4 - 4]
lea ecx, [esp + 0xd8]
mov eax, dword [eax + 0x9c]
mov dword [esp + 0x24], ebx
push eax
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push ecx
call fcn.00516c8e
lea edi, [esp + 0xe4]
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 + 0x28]
lea edx, [esi + 1]
push edx
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xd8]
mov ecx, dword [ecx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x502601
mov edx, dword [esp + 0x24]
mov dword [edx + 0xc], esi
lea eax, [esp + 0x24]
push 0x53f5c0
lea ecx, [esp + 0x88]
push eax
push ecx
mov byte [esp + 0x14c], 0xf
call fcn.0040d6f0
lea edx, [esp + 0x24]
mov byte [esp + 0x14c], 0x10
push edx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00417990
add esp, 0x18
mov esi, eax
mov eax, dword [esp + 0x60]
mov byte [esp + 0x140], 0x11
cmp eax, ebx
jne 0x50266c
push 0xa
lea ecx, [esp + 0x64]
call fcn.0041c000
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jne 0x502685
lea ecx, [eax + eax]
push ecx
lea ecx, [esp + 0x64]
call fcn.0041c000
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 + 0x144], 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 + 0x140], 0x11
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x140], 0x10
inc ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x7c]
cmp ecx, ebx
je 0x5026e1
call fcn.0046c950
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x84]
mov byte [esp + 0x140], 0xf
cmp ecx, ebx
je 0x502700
call fcn.0046c950
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x140], 0xe
cmp ecx, ebx
je 0x502719
call fcn.0046c950
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x140], 7
cmp ecx, ebx
je 0x502732
call fcn.0046c950
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4 - 4]
lea ecx, [esp + 0x118]
mov eax, dword [eax + 0xac]
mov dword [esp + 0x1c], ebx
push eax
push sym.MOHAA.exe____C__02MECO___CFd__AA_
push ecx
call fcn.00516c8e
lea edi, [esp + 0x124]
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 + 0x20]
lea edx, [esi + 1]
push edx
call sym.MOHAA.exe_private:_void___thiscall_str::EnsureAlloced_int__bool_
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x118]
mov ecx, dword [ecx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
cmp dl, bl
jne 0x50278f
mov edx, dword [esp + 0x1c]
mov dword [edx + 0xc], esi
mov eax, dword [esp + 0x48]
mov byte [esp + 0x140], 0x13
cmp eax, ebx
jne 0x5027bb
push 0xa
lea ecx, [esp + 0x4c]
call fcn.0041c000
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jne 0x5027d3
add eax, eax
lea ecx, [esp + 0x48]
push eax
call fcn.0041c000
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x98]
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 + 0x144], 0x14
lea ecx, [edx + eax*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x94]
mov byte [esp + 0x140], 0x13
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x140], 7
inc ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x502833
call fcn.0046c950
mov dword [esp + 0x1c], 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 0x502929
mov al, byte [0x5639b4]
mov dword [esp + 0x10], ebx
cmp al, bl
je 0x50289b
mov edi, 0x5639b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x50289b
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, 0x5639b4
mov edx, dword [edx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x50288a
mov eax, dword [esp + 0x10]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x140], 0x15
cmp eax, ebx
jne 0x5028b6
push 0xa
lea ecx, [esp + 0x34]
call fcn.0041c000
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jne 0x5028cf
lea ecx, [eax + eax]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041c000
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_class_str_const__
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
mov byte [esp + 0x144], 0x16
lea ecx, [eax + ecx*4]
call sym.MOHAA.exe_public:_void___thiscall_str::operator_class_str_const__
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 0x15
call sym.MOHAA.exe_public:_void___thiscall_str::destructor_void_
inc dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x140], 7
cmp ecx, ebx
je 0x5029d1
call fcn.0046c950
jmp 0x5029d1
cmp eax, 2
jne 0x502994
mov al, byte [0x5639b0]
mov dword [esp + 0x10], ebx
cmp al, bl
je 0x502979
mov edi, 0x5639b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x502979
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, 0x5639b0
mov edx, dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x502968
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], esi
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x144], 0x17
call fcn.00503d10
jmp 0x50290b
push 0x5639ac
lea ecx, [esp + 0x70]
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x144], 0x18
call fcn.00503d10
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x140], 7
cmp ecx, ebx
je 0x5029d1
call fcn.0046c950
mov dword [esp + 0x6c], ebx
mov ecx, dword [ebp + 0x1c4]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx + esi*4 - 4]
lea ecx, [esp + 0x80]
add edx, 0x74
push edx
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
lea eax, [esp + 0x80]
lea ecx, [esp + 0x9c]
push eax
mov byte [esp + 0x144], 0x19
call fcn.00503d10
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 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 0x502274
fld dword [ebp + 0x1c]
fdiv dword [ebp + 0x24]
lea ecx, [esp + 0x54]
mov dword [ebp + 0x1dc], 0x40800000
mov dword [ebp + 0x1d0], ebx
push ecx
fsub dword [0x531744]
fsub dword [0x5335ac]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [0x531740]
call fcn.00516e2c
push eax
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Server_Name
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.00501b70
fld dword [esp + 0x10]
fmul dword [0x53173c]
lea edx, [esp + 0x3c]
push edx
call fcn.00516e2c
push eax
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x541070
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.00501b70
fld dword [esp + 0x10]
fmul dword [0x531738]
lea eax, [esp + 0x60]
push eax
call fcn.00516e2c
push eax
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Players
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.00501b70
fld dword [esp + 0x10]
fmul dword [0x531734]
lea ecx, [esp + 0x9c]
push ecx
call fcn.00516e2c
push eax
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.GameType
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.00501b70
fld dword [esp + 0x10]
fmul dword [0x531730]
lea edx, [esp + 0x48]
push edx
call fcn.00516e2c
push eax
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Ping
call sym.MOHAA.exe_public:_void___thiscall_str::constructor_char_const__
mov ecx, ebp
call fcn.00501b70
mov ecx, ebp
call fcn.00501fd0
mov byte [ebp + 0x180], 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x140], 6
call fcn.00457020
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 5
call fcn.00457020
lea ecx, [esp + 0x48]
mov byte [esp + 0x140], 4
call fcn.00457020
lea ecx, [esp + 0x60]
mov byte [esp + 0x140], 3
call fcn.00457020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 2
call fcn.00457020
lea ecx, [esp + 0x54]
mov byte [esp + 0x140], 1
call fcn.00457020
lea ecx, [esp + 0x70]
mov byte [esp + 0x140], bl
call fcn.00457020
lea ecx, [esp + 0xa8]
mov dword [esp + 0x140], 0xffffffff
call fcn.00454dc0
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x134
ret