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

Disassembly:
push 0xffffffffffffffff
push 0x5bc21b
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 + 0x1a84]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], ebx
jne 0x51f5b5
xor al, al
jmp 0x51fd24
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x51f5c5
mov ebp, ecx
mov dword [esp + 0x10], ebp
jmp 0x51f5de
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 + 0x123c]
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test al, al
jne 0x51f96b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x63ac20]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x51f7b8
cmp eax, esi
je 0x51f66c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51f66c
add eax, 0x250
push eax
call edx
lea ecx, [ebp + 0xc]
lea edx, [ebx + 0x1a90]
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 [0x63ac20]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec710
mov edx, dword [0x63ac20]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c870
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x51f6bb
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 + 0x1a90]
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 [0x635478]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401160
mov eax, dword [0x635480]
cmp eax, esi
je 0x51f96b
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, esi
jle 0x51f96b
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x51f7a7
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51f7a7
call fcn.0044c870
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51f7a2
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51f7a2
lea edi, [ebx + 0x1a90]
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 0x51f791
mov al, byte [esi + 0x80]
test al, al
jne 0x51f791
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51f791
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.004024f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635480]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x51f6d5
jmp 0x51f969
cmp eax, esi
je 0x51f815
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51f815
add eax, 0x250
push eax
call edx
push ebp
push str._RX_
push esi
push ecx
lea eax, [ebx + 0x1a90]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63ac20]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec710
mov eax, dword [0x63ac20]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c870
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x51f865
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 + 0x1a90]
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 [0x635478]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401160
mov eax, dword [0x635480]
cmp eax, esi
je 0x51f96b
mov ecx, dword [eax + 0x50]
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x14], edi
jle 0x51f96b
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x51f959
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51f959
call fcn.0044c870
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51f954
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51f954
lea edi, [ebx + 0x1a90]
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 0x51f938
mov al, byte [esi + 0x80]
test al, al
jne 0x51f938
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51f938
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.004024f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x635480]
mov edi, dword [esp + 0x14]
jmp 0x51f959
mov eax, dword [0x635480]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
mov dword [esp + 0x14], edi
jl 0x51f883
xor esi, esi
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x51f9b5
mov dword [eax + 0x24], 0x5d115c
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 0x51f9b7
xor ebp, ebp
push ecx
lea edx, [ebx + 0x1a90]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_CString::CString_3
call fcn.004eb710
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x1a84]
add eax, 0x44
mov edi, dword [ebx + 0x7c]
add esp, 4
mov ecx, dword [eax]
cmp dword [ecx - 8], esi
jne 0x51f9f9
push ecx
lea edx, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
jmp 0x51fa01
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004eb710
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x51fa22
cmp byte [eax], 0
je 0x51fa22
mov edi, eax
jmp 0x51fa25
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 + 0x1a84]
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 0x51fad0
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 0x51fad2
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.0054c510
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, 0x626c84
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51fb2e
test cl, cl
je 0x51fb2a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51fb2e
add eax, 2
add esi, 2
test cl, cl
jne 0x51fb06
xor eax, eax
jmp 0x51fb33
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51fb76
mov esi, str.UNLOCK01
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51fb66
test cl, cl
je 0x51fb62
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51fb66
add eax, 2
add esi, 2
test cl, cl
jne 0x51fb3e
xor eax, eax
jmp 0x51fb6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51fb76
mov ecx, edi
call fcn.0051fd40
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x51fbbf
mov eax, dword [edi + 0x1a84]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x51fbbf
push ebp
call sub.MFC42.DLL_operatordelete
mov esi, dword [edi + 0x1a84]
add esp, 4
add esi, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
dec eax
je 0x51fbbc
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 [0x63ac20]
add ecx, 0x210
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x63ac20]
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 0x51fc18
cmp eax, edi
je 0x51fc0d
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 0x51fd03
cmp eax, edi
jne 0x51fc50
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 0x51fd03
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x51fc6e
cmp ebx, edx
jle 0x51fc66
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 0x51fd03
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x51fc98
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x51fc8c
mov eax, 4
jmp 0x51fc98
cmp eax, 0x400
jle 0x51fc98
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x48], eax
jl 0x51fca6
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 [0x63ac20]
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