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

Disassembly:
push 0xffffffffffffffff
push 0x5c11bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1a94]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], ebx
jne 0x523015
xor al, al
jmp 0x523784
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x523025
mov ebp, ecx
mov dword [esp + 0x10], ebp
jmp 0x52303e
mov eax, dword [eax + 0xc]
or ecx, 0xffffffff
mov ebp, dword [eax]
xor eax, eax
mov edi, ebp
mov dword [esp + 0x10], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ecx
mov al, byte [ebx + 0x124c]
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test al, al
jne 0x5233cb
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x641030]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x523218
cmp eax, esi
je 0x5230cc
mov cl, byte [eax + 0x40]
test cl, cl
je 0x5230cc
add eax, 0x250
push eax
call edx
lea ecx, [ebp + 0xc]
lea edx, [ebx + 0x1aa0]
push ecx
push str._RX_
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x641030]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ed3c0
mov edx, dword [0x641030]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c9d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x52311b
add ebp, 0xc
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [ebx + 0x1aa0]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [esp + 0x40], esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63b908]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x63b910]
cmp eax, esi
je 0x5233cb
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, esi
jle 0x5233cb
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x523207
mov cl, byte [esi + 0x88]
test cl, cl
je 0x523207
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x523202
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x523202
lea edi, [ebx + 0x1aa0]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x5231f1
mov al, byte [esi + 0x80]
test al, al
jne 0x5231f1
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x5231f1
mov edx, dword [esp + 0x10]
add edx, 0xc
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x3c], 1
call fcn.00402460
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x523135
jmp 0x5233c9
cmp eax, esi
je 0x523275
mov cl, byte [eax + 0x40]
test cl, cl
je 0x523275
add eax, 0x250
push eax
call edx
push ebp
push str._RX_
push esi
push ecx
lea eax, [ebx + 0x1aa0]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x641030]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c9d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x5232c5
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [ebx + 0x1aa0]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esp + 0x40], 3
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63b908]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x63b910]
cmp eax, esi
je 0x5233cb
mov ecx, dword [eax + 0x50]
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x14], edi
jle 0x5233cb
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x5233b9
mov cl, byte [esi + 0x88]
test cl, cl
je 0x5233b9
call fcn.0044c9d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x5233b4
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5233b4
lea edi, [ebx + 0x1aa0]
lea ecx, [esp + 0x18]
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], 4
mov eax, dword [ecx - 8]
test eax, eax
je 0x523398
mov al, byte [esi + 0x80]
test al, al
jne 0x523398
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x523398
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 5
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x3c], 4
call fcn.00402460
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x63b910]
mov edi, dword [esp + 0x14]
jmp 0x5233b9
mov eax, dword [0x63b910]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
mov dword [esp + 0x14], edi
jl 0x5232e3
xor esi, esi
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x523415
mov dword [eax + 0x24], 0x5d628c
mov dword [eax + 0x28], esi
mov dword [eax + 0x34], esi
mov dword [eax + 0x30], esi
mov dword [eax + 0x2c], esi
mov word [eax], si
mov dword [eax + 0x20], esi
mov dword [eax + 0x1c], esi
mov byte [eax + 0x1a], 0
mov byte [eax + 0x19], 0
mov byte [eax + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov byte [eax + 0x14], 0
mov word [eax + 0x16], 0x3e8
mov ebp, eax
jmp 0x523417
xor ebp, ebp
push ecx
lea edx, [ebx + 0x1aa0]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_CString::CString_3
call fcn.004ec3c0
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x1a94]
add eax, 0x44
mov edi, dword [ebx + 0x7c]
add esp, 4
mov ecx, dword [eax]
cmp dword [ecx - 8], esi
jne 0x523459
push ecx
lea edx, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
jmp 0x523461
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x523482
cmp byte [eax], 0
je 0x523482
mov edi, eax
jmp 0x523485
mov edi, dword [edi + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x14
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea ebx, [ebp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov byte [ebp + 0x18], 0
mov edx, dword [ecx + 0x1a94]
mov al, byte [edx + 0x40]
mov byte [ebp + 0x13], al
mov eax, 1
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x40], ebp
test ebp, ebp
mov dword [esp + 0x30], 6
je 0x523530
mov esi, dword [esp + 0x3c]
mov dword [ebp + 4], esi
lea ecx, [esi + 1]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov esi, dword [esp + 0x14]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, edx
mov dl, byte [esp + 0x48]
mov byte [eax + ecx], 0
mov eax, 1
mov byte [ebp + 8], dl
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov byte [ebp + 9], 0
jmp 0x523532
xor ebp, ebp
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
mov dword [esp + 0x34], 0xffffffff
lea eax, [esi + 1]
push eax
call fcn.005343d0
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x1c]
mov dword [ecx + esi*4], ebp
mov ebp, dword [esp + 0x10]
mov dword [edi + 0x78], 6
mov esi, 0x62cf04
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x52358e
test cl, cl
je 0x52358a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x52358e
add eax, 2
add esi, 2
test cl, cl
jne 0x523566
xor eax, eax
jmp 0x523593
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5235d6
mov esi, str.UNLOCK01
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5235c6
test cl, cl
je 0x5235c2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5235c6
add eax, 2
add esi, 2
test cl, cl
jne 0x52359e
xor eax, eax
jmp 0x5235cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5235d6
mov ecx, edi
call fcn.005237a0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x52361f
mov eax, dword [edi + 0x1a94]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x52361f
push ebp
call sub.MFC42.DLL_operatordelete
mov esi, dword [edi + 0x1a94]
add esp, 4
add esi, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
dec eax
je 0x52361c
lea edx, [eax*4]
lea eax, [ecx + 4]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec dword [esi + 8]
mov ecx, edi
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::StartTimer_void_
mov ecx, dword [0x641030]
add ecx, 0x210
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x641030]
xor edi, edi
lea ebp, [edx + 0x310]
mov edx, dword [edx + 0x318]
mov eax, dword [ebp + 4]
mov esi, edx
mov dword [esp + 0x38], esi
lea ebx, [esi + 1]
cmp ebx, edi
jne 0x523678
cmp eax, edi
je 0x52366d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x523763
cmp eax, edi
jne 0x5236b0
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x523763
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x5236ce
cmp ebx, edx
jle 0x5236c6
mov ecx, ebx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
jmp 0x523763
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x5236f8
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5236ec
mov eax, 4
jmp 0x5236f8
cmp eax, 0x400
jle 0x5236f8
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x48], eax
jl 0x523706
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x48]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x40], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
add esp, 8
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + esi*4], ecx
mov edx, dword [0x641030]
mov eax, dword [edx + 0x208]
lea ecx, [edx + 0x208]
call dword [eax + 0x1c]
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x14