Function at 0x51ca70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60afd0
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
push ecx
push str.OnLogin
call fcn.00469e40
mov esi, dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
lea eax, [ebp - 0x98]
push 0
push str.userNameLogin
push eax
mov ecx, ebx
call esi
mov dword [ebp - 4], 0
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_wchar_t_const____thiscall_DuiLib::CStdString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040c380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
mov eax, dword [ebp - 0xa0]
or edi, 0xffffffff
push 0
cmp dword [eax - 0xc], 0
jne 0x51cb27
mov edx, dword [ebx + 4]
mov ecx, str.InputUserName
push 0x40
call fcn.00495040
add esp, 8
mov ecx, ebx
push str.userNameLogin
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::SetFocus_wchar_t_const__]
jmp 0x51cc9e
push str.PasswordLogin
lea eax, [ebp - 0x98]
mov ecx, ebx
push eax
call esi
mov byte [ebp - 4], 4
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_wchar_t_const____thiscall_DuiLib::CStdString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040c380
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x98]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
push 0
lea ecx, [ebp - 0xb0]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::constructor_struct_HWND____]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xa0]
mov esi, dword [ebx + 0x90c]
sub esi, 0x10
lea edx, [eax - 0x10]
mov dword [ebp - 0x9c], edx
cmp edx, esi
je 0x51cbe0
cmp dword [esi + 0xc], 0
jl 0x51cbd1
mov edx, dword [edx]
cmp edx, dword [esi]
jne 0x51cbd1
mov ecx, dword [ebp - 0x9c]
call fcn.0040c950
mov dword [ebp - 0x9c], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51cbc6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x9c]
add eax, 0x10
mov dword [ebx + 0x90c], eax
jmp 0x51cbe0
push dword [eax - 0xc]
lea ecx, [ebx + 0x90c]
push eax
call fcn.0040c9d0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebx + 0x910]
mov esi, dword [ecx]
sub esi, 0x10
lea edx, [eax - 0x10]
mov dword [ebp - 0x9c], edx
cmp edx, esi
je 0x51cc4b
cmp dword [esi + 0xc], 0
jl 0x51cc42
mov edx, dword [edx]
cmp edx, dword [esi]
jne 0x51cc42
mov ecx, dword [ebp - 0x9c]
call fcn.0040c950
mov dword [ebp - 0x9c], eax
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51cc31
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x9c]
add eax, 0x10
mov dword [ebx + 0x910], eax
jmp 0x51cc4b
push dword [eax - 0xc]
push eax
call fcn.0040c9d0
lea eax, [ebp - 0xa8]
push eax
push 0
push ebx
push 0x51c620
push 0
push 0
call fcn.005b6ff3
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb0]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::destructor_void_]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51cc9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x51ccc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret