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

Disassembly:
push 0xffffffffffffffff
push 0x5b7bcb
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 + 0x1a80]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], ebx
jne 0x51ce95
xor al, al
jmp 0x51d604
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x51cea5
mov ebp, ecx
mov dword [esp + 0x10], ebp
jmp 0x51cebe
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 + 0x1238]
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test al, al
jne 0x51d24b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x635490]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x51d098
cmp eax, esi
je 0x51cf4c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51cf4c
add eax, 0x250
push eax
call edx
lea ecx, [ebp + 0xc]
lea edx, [ebx + 0x1a8c]
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x51cf9b
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 + 0x1a8c]
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 [0x62fce8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, esi
je 0x51d24b
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, esi
jle 0x51d24b
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x51d087
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51d087
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51d082
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51d082
lea edi, [ebx + 0x1a8c]
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 0x51d071
mov al, byte [esi + 0x80]
test al, al
jne 0x51d071
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51d071
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.004024b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x51cfb5
jmp 0x51d249
cmp eax, esi
je 0x51d0f5
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51d0f5
add eax, 0x250
push eax
call edx
push ebp
push str._RX_
push esi
push ecx
lea eax, [ebx + 0x1a8c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x635490]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c560
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x51d145
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 + 0x1a8c]
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 [0x62fce8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, esi
je 0x51d24b
mov ecx, dword [eax + 0x50]
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x14], edi
jle 0x51d24b
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x51d239
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51d239
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51d234
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51d234
lea edi, [ebx + 0x1a8c]
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 0x51d218
mov al, byte [esi + 0x80]
test al, al
jne 0x51d218
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51d218
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.004024b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov edi, dword [esp + 0x14]
jmp 0x51d239
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
mov dword [esp + 0x14], edi
jl 0x51d163
xor esi, esi
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x51d295
mov dword [eax + 0x24], 0x5cc13c
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 0x51d297
xor ebp, ebp
push ecx
lea edx, [ebx + 0x1a8c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_CString::CString_3
call fcn.004eaa10
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x1a80]
add eax, 0x44
mov edi, dword [ebx + 0x78]
add esp, 4
mov ecx, dword [eax]
cmp dword [ecx - 8], esi
jne 0x51d2d9
push ecx
lea edx, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
jmp 0x51d2e1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004eaa10
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x51d302
cmp byte [eax], 0
je 0x51d302
mov edi, eax
jmp 0x51d305
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 + 0x1a80]
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 0x51d3b0
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 0x51d3b2
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.0056a200
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x1c]
mov dword [ecx + esi*4], ebp
mov ebp, dword [esp + 0x10]
mov dword [edi + 0x74], 6
mov esi, 0x621ba0
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51d40e
test cl, cl
je 0x51d40a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51d40e
add eax, 2
add esi, 2
test cl, cl
jne 0x51d3e6
xor eax, eax
jmp 0x51d413
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51d456
mov esi, str.UNLOCK01
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51d446
test cl, cl
je 0x51d442
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51d446
add eax, 2
add esi, 2
test cl, cl
jne 0x51d41e
xor eax, eax
jmp 0x51d44b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51d456
mov ecx, edi
call fcn.0051d620
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x51d49f
mov eax, dword [edi + 0x1a80]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x51d49f
push ebp
call sub.MFC42.DLL_operatordelete
mov esi, dword [edi + 0x1a80]
add esp, 4
add esi, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
dec eax
je 0x51d49c
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 [0x635490]
add ecx, 0x210
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x635490]
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 0x51d4f8
cmp eax, edi
je 0x51d4ed
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 0x51d5e3
cmp eax, edi
jne 0x51d530
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 0x51d5e3
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x51d54e
cmp ebx, edx
jle 0x51d546
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 0x51d5e3
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x51d578
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x51d56c
mov eax, 4
jmp 0x51d578
cmp eax, 0x400
jle 0x51d578
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x48], eax
jl 0x51d586
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 [0x635490]
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