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

Disassembly:
push 0xffffffffffffffff
push 0x5b77bb
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 0x51cab5
xor al, al
jmp 0x51d224
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x51cac5
mov ebp, ecx
mov dword [esp + 0x10], ebp
jmp 0x51cade
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 0x51ce6b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x635400]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x51ccb8
cmp eax, esi
je 0x51cb6c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51cb6c
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x51cbbb
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 [0x62fc58]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, esi
je 0x51ce6b
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, esi
jle 0x51ce6b
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x51cca7
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51cca7
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51cca2
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51cca2
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 0x51cc91
mov al, byte [esi + 0x80]
test al, al
jne 0x51cc91
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51cc91
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 [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x51cbd5
jmp 0x51ce69
cmp eax, esi
je 0x51cd15
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51cd15
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 [0x635400]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb7d0
mov eax, dword [0x635400]
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 0x51cd65
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 [0x62fc58]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, esi
je 0x51ce6b
mov ecx, dword [eax + 0x50]
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x14], edi
jle 0x51ce6b
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x51ce59
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51ce59
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51ce54
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51ce54
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 0x51ce38
mov al, byte [esi + 0x80]
test al, al
jne 0x51ce38
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51ce38
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 [0x62fc60]
mov edi, dword [esp + 0x14]
jmp 0x51ce59
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
mov dword [esp + 0x14], edi
jl 0x51cd83
xor esi, esi
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x51ceb5
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 0x51ceb7
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.004ea7d0
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 0x51cef9
push ecx
lea edx, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
jmp 0x51cf01
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004ea7d0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x51cf22
cmp byte [eax], 0
je 0x51cf22
mov edi, eax
jmp 0x51cf25
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 0x51cfd0
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 0x51cfd2
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.00533060
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, 0x621b20
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51d02e
test cl, cl
je 0x51d02a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51d02e
add eax, 2
add esi, 2
test cl, cl
jne 0x51d006
xor eax, eax
jmp 0x51d033
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51d076
mov esi, str.UNLOCK01
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51d066
test cl, cl
je 0x51d062
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51d066
add eax, 2
add esi, 2
test cl, cl
jne 0x51d03e
xor eax, eax
jmp 0x51d06b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51d076
mov ecx, edi
call fcn.0051d240
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x51d0bf
mov eax, dword [edi + 0x1a80]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x51d0bf
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 0x51d0bc
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 [0x635400]
add ecx, 0x210
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x635400]
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 0x51d118
cmp eax, edi
je 0x51d10d
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 0x51d203
cmp eax, edi
jne 0x51d150
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 0x51d203
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x51d16e
cmp ebx, edx
jle 0x51d166
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 0x51d203
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x51d198
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x51d18c
mov eax, 4
jmp 0x51d198
cmp eax, 0x400
jle 0x51d198
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x48], eax
jl 0x51d1a6
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 [0x635400]
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