Function at 0x51d220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b1ec
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
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 dword [ebp - 0x9c], ecx
push 0
push 0
push ecx
push str.OnRegister
call fcn.00469e40
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x51d951
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xb8], edi
mov dword [ebp - 4], 1
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x51d95b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xb0], esi
mov byte [ebp - 4], 3
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x51d965
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x98]
cmp dword [0x6b0c60], 0x3a8
mov ecx, dword [ebp - 0x9c]
push 0
jne 0x51d37c
push str.userName
push eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
mov byte [ebp - 4], 6
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_wchar_t_const____thiscall_DuiLib::CStdString::operator_wchar_t_const__void_const]
mov edx, eax
test edx, edx
jne 0x51d30b
xor ecx, ecx
jmp 0x51d31f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d310
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.0040c9d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
mov esi, dword [ebp - 0xb0]
cmp dword [esi - 0xc], 0
jne 0x51d4a0
mov eax, dword [ebp - 0x9c]
mov ecx, str.InputUserName
push 0
push 0x40
mov edx, dword [eax + 4]
call fcn.00495040
mov ecx, dword [ebp - 0x9c]
add esp, 8
push str.userName
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::SetFocus_wchar_t_const__]
jmp 0x51d8e1
push 0x650edc
push eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
mov byte [ebp - 4], 0xa
mov ecx, eax
call dword [sym.imp.ycomuiu.dll_public:_wchar_t_const____thiscall_DuiLib::CStdString::operator_wchar_t_const__void_const]
mov edx, eax
test edx, edx
jne 0x51d39e
xor ecx, ecx
jmp 0x51d3b2
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d3a3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.0040c9d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
push ecx
mov dword [ebp - 0xa0], esp
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0xa8], esp
lea ecx, [edi - 0x10]
call fcn.0040c950
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 5
call fcn.004df460
add esp, 4
test eax, eax
jne 0x51d434
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, str.InvalidEmail
push 0x40
mov edx, dword [eax + 4]
call fcn.00495040
mov ecx, dword [ebp - 0x9c]
add esp, 8
push 0x650edc
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::SetFocus_wchar_t_const__]
jmp 0x51d8e1
lea ecx, [esi - 0x10]
lea edx, [edi - 0x10]
mov dword [ebp - 0xa0], ecx
cmp edx, ecx
je 0x51d4a0
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x51d48b
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x51d48b
mov ecx, edx
call fcn.0040c950
mov dword [ebp - 0xa4], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x51d480
mov esi, dword [ebp - 0xa0]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xa4]
lea esi, [eax + 0x10]
mov dword [ebp - 0xb0], esi
jmp 0x51d4a0
push dword [edi - 0xc]
lea ecx, [ebp - 0xb0]
push edi
call fcn.0040c9d0
mov esi, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push 0
push str.Password
push eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
mov byte [ebp - 4], 0x10
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 - 0xb4]
call fcn.0040c380
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x98]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push 0
push str.PasswordOK
push eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
mov byte [ebp - 4], 0x13
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 - 0xbc]
call fcn.0040c380
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x98]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x51d96f
mov ecx, dword [ebp - 0xb4]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x51d55e
test dx, dx
je 0x51d55a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x51d55e
add ecx, 4
add eax, 4
test dx, dx
jne 0x51d538
xor eax, eax
jmp 0x51d563
sbb eax, eax
or eax, 1
test eax, eax
je 0x51d5de
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x6b0e48
call fcn.00420d90
mov byte [ebp - 4], 0x16
push 0
mov byte [ebp - 4], 0x15
mov edx, 0x40
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 4]
call fcn.004e0d20
mov ecx, dword [ebp - 0x9c]
add esp, 0x1c
push 0x639ee0
push str.Password
call dword [sym.imp.ycomuiu.dll_public:_int___thiscall_DuiLib::WindowImplBase::SetDlgItemTextW_wchar_t_const___wchar_t_const__]
mov ecx, dword [ebp - 0x9c]
push 0x639ee0
push str.PasswordOK
call dword [sym.imp.ycomuiu.dll_public:_int___thiscall_DuiLib::WindowImplBase::SetDlgItemTextW_wchar_t_const___wchar_t_const__]
mov ecx, dword [ebp - 0x9c]
push str.Password
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::SetFocus_wchar_t_const__]
jmp 0x51d89d
push 0
lea ecx, [ebp - 0xcc]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::constructor_struct_HWND____]
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x94c], 0
jne 0x51d88d
lea ecx, [esi - 0x10]
lea edx, [eax + 0x914]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa0], ecx
je 0x51d693
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xa0], eax
jl 0x51d682
mov eax, dword [esi - 0x10]
cmp eax, dword [ecx]
jne 0x51d682
lea ecx, [esi - 0x10]
call fcn.0040c950
mov edx, dword [ebp - 0xa0]
or ecx, 0xffffffff
mov dword [ebp - 0xac], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51d675
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x51d68d
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.0040c9d0
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xb4]
lea ecx, [eax + 0x918]
mov dword [ebp - 0xa4], ecx
add edx, 0xfffffff0
mov ecx, dword [ecx]
sub ecx, 0x10
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa0], ecx
cmp edx, ecx
je 0x51d72b
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xb4]
jl 0x51d71c
mov edx, dword [edx]
cmp edx, dword [ecx]
jne 0x51d71c
mov ecx, dword [ebp - 0xa8]
call fcn.0040c950
mov dword [ebp - 0xa8], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0xac]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51d709
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x51d72b
push dword [eax - 0xc]
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.0040c9d0
mov eax, dword [ebp - 0x9c]
lea ecx, [edi - 0x10]
lea edx, [eax + 0x91c]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xa8], ecx
je 0x51d7c1
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xa8], eax
jl 0x51d7b0
mov eax, dword [edi - 0x10]
cmp eax, dword [ecx]
jne 0x51d7b0
lea ecx, [edi - 0x10]
call fcn.0040c950
mov edx, dword [ebp - 0xa8]
or ecx, 0xffffffff
mov dword [ebp - 0xa0], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51d7a3
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
add eax, 0x10
mov dword [ecx], eax
jmp 0x51d7bb
push dword [edi - 0xc]
mov ecx, edx
push edi
call fcn.0040c9d0
mov eax, dword [ebp - 0x9c]
lea ecx, [eax + 0x920]
mov dword [ebp - 0xa0], ecx
lea eax, [ebx + 0x10]
mov ecx, dword [ecx]
lea edx, [eax - 0x10]
sub ecx, 0x10
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xac], ecx
cmp edx, ecx
je 0x51d856
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
mov dword [ebp - 0xa8], edx
mov edx, dword [ebp - 0xa4]
jl 0x51d847
mov edx, dword [edx]
cmp edx, dword [ecx]
jne 0x51d847
mov ecx, dword [ebp - 0xa4]
call fcn.0040c950
mov dword [ebp - 0xa4], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0xa8]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51d834
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
add eax, 0x10
mov dword [ecx], eax
jmp 0x51d856
push dword [eax - 0xc]
mov ecx, dword [ebp - 0xa0]
push eax
call fcn.0040c9d0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0xc4]
push ecx
push 0
push eax
push 0x51cfa0
push 0
push 0
mov dword [eax + 0x948], 0
call fcn.005b6ff3
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
mov dword [ecx + 0x94c], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xcc]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::destructor_void_]
mov byte [ebp - 4], 0x12
or eax, 0xffffffff
mov edx, dword [ebp - 0xbc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51d8bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51d8e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51d8fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51d919
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51d935
mov ecx, dword [edi]
push edi
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
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
int3