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

Disassembly:
push 0xffffffffffffffff
push 0x5b922b
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 0x51d225
xor al, al
jmp 0x51d994
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x51d235
mov ebp, ecx
mov dword [esp + 0x10], ebp
jmp 0x51d24e
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 0x51d5db
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x637760]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x51d428
cmp eax, esi
je 0x51d2dc
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51d2dc
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 [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x51d32b
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 [0x631fb8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, esi
je 0x51d5db
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, esi
jle 0x51d5db
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x51d417
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51d417
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51d412
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51d412
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 0x51d401
mov al, byte [esi + 0x80]
test al, al
jne 0x51d401
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51d401
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.00402490
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x51d345
jmp 0x51d5d9
cmp eax, esi
je 0x51d485
mov cl, byte [eax + 0x40]
test cl, cl
je 0x51d485
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 [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x51d4d5
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 [0x631fb8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, esi
je 0x51d5db
mov ecx, dword [eax + 0x50]
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x14], edi
jle 0x51d5db
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x51d5c9
mov cl, byte [esi + 0x88]
test cl, cl
je 0x51d5c9
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x51d5c4
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51d5c4
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 0x51d5a8
mov al, byte [esi + 0x80]
test al, al
jne 0x51d5a8
mov eax, dword [esi + 0x84]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x51d5a8
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.00402490
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov edi, dword [esp + 0x14]
jmp 0x51d5c9
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc edi
cmp edi, ecx
mov dword [esp + 0x14], edi
jl 0x51d4f3
xor esi, esi
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x51d625
mov dword [eax + 0x24], 0x5ce134
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 0x51d627
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.004ea100
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 0x51d669
push ecx
lea edx, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
jmp 0x51d671
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004ea100
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x51d692
cmp byte [eax], 0
je 0x51d692
mov edi, eax
jmp 0x51d695
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 0x51d740
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 0x51d742
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.00582a70
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, 0x62392c
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51d79e
test cl, cl
je 0x51d79a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51d79e
add eax, 2
add esi, 2
test cl, cl
jne 0x51d776
xor eax, eax
jmp 0x51d7a3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51d7e6
mov esi, str.UNLOCK01
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x51d7d6
test cl, cl
je 0x51d7d2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x51d7d6
add eax, 2
add esi, 2
test cl, cl
jne 0x51d7ae
xor eax, eax
jmp 0x51d7db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51d7e6
mov ecx, edi
call fcn.0051d9b0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x51d82f
mov eax, dword [edi + 0x1a80]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x51d82f
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 0x51d82c
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 [0x637760]
add ecx, 0x210
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x637760]
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 0x51d888
cmp eax, edi
je 0x51d87d
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 0x51d973
cmp eax, edi
jne 0x51d8c0
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 0x51d973
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x51d8de
cmp ebx, edx
jle 0x51d8d6
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 0x51d973
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x51d908
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x51d8fc
mov eax, 4
jmp 0x51d908
cmp eax, 0x400
jle 0x51d908
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x48], eax
jl 0x51d916
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 [0x637760]
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