Function at 0x51c000
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ae61
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x9c]
push edx
mov ecx, dword [eax + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
mov esi, dword [sym.imp.ycomuiu.dll_public:_bool___thiscall_DuiLib::CStdString::operator_wchar_t_const__const]
push str.userName
call esi
test al, al
je 0x51c1f0
push 0
push str.userName
lea eax, [ebp - 0x124]
mov ecx, edi
push eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
mov byte [ebp - 4], 1
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 - 0x128]
call fcn.0040c380
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
mov eax, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
call eax
mov eax, dword [ebp - 0x128]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x51c1eb
lea edx, [edi + 0x900]
lea ecx, [ebp - 0x128]
call fcn.0049a1f0
test al, al
je 0x51c1eb
mov eax, dword [ebp - 0x128]
mov esi, dword [edi + 0x900]
sub esi, 0x10
lea edx, [eax - 0x10]
cmp edx, esi
je 0x51c137
cmp dword [esi + 0xc], 0
jl 0x51c128
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x51c128
mov ecx, edx
call fcn.0040c950
mov dword [ebp - 0x12c], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51c11d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x12c]
add eax, 0x10
mov dword [edi + 0x900], eax
jmp 0x51c137
push dword [eax - 0xc]
lea ecx, [edi + 0x900]
push eax
call fcn.0040c9d0
lea eax, [ebp - 0x128]
push eax
lea ecx, [edi + 0x92c]
call fcn.004c5800
cmp eax, 0xffffffff
je 0x51c16c
mov esi, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::ShowWindow_wchar_t_const___bool_]
mov ecx, edi
push 1
push str.imgOK
call esi
push 0
push str.imgNO
mov ecx, edi
call esi
jmp 0x51c1eb
lea eax, [ebp - 0x128]
push eax
lea ecx, [edi + 0x938]
call fcn.004c5800
cmp eax, 0xffffffff
je 0x51c1a1
mov esi, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::ShowWindow_wchar_t_const___bool_]
mov ecx, edi
push 0
push str.imgOK
call esi
push 1
push str.imgNO
mov ecx, edi
call esi
jmp 0x51c1eb
mov eax, dword [edi + 0x928]
test eax, eax
je 0x51c1ca
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x928]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x928], 0
lea eax, [ebp - 0x130]
push eax
push 0
push edi
push 0x51c400
push 0
push 0
call fcn.005b6ff3
add esp, 0x18
mov dword [edi + 0x928], eax
jmp 0x51c3ac
push 0x650edc
lea ecx, [ebp - 0x9c]
call esi
test al, al
je 0x51c3cb
cmp dword [0x6b0c60], 0x3a8
je 0x51c3cb
push 0
push 0x650edc
lea eax, [ebp - 0x124]
mov ecx, edi
push eax
call dword [sym.imp.ycomuiu.dll_public:_class_DuiLib::CStdString___thiscall_DuiLib::WindowImplBase::GetDlgItemTextW_wchar_t_const___bool_]
mov byte [ebp - 4], 7
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 - 0x128]
call fcn.0040c380
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x124]
mov eax, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
call eax
mov eax, dword [ebp - 0x128]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x51c3ac
lea edx, [edi + 0x900]
lea ecx, [ebp - 0x128]
call fcn.0049a1f0
test al, al
je 0x51c3ac
mov eax, dword [ebp - 0x128]
mov esi, dword [edi + 0x900]
sub esi, 0x10
lea ecx, [eax - 0x10]
cmp ecx, esi
je 0x51c2e3
cmp dword [esi + 0xc], 0
jl 0x51c2d4
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x51c2d4
call fcn.0040c950
mov dword [ebp - 0x12c], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51c2c9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x12c]
add eax, 0x10
mov dword [edi + 0x900], eax
jmp 0x51c2e3
push dword [eax - 0xc]
lea ecx, [edi + 0x900]
push eax
call fcn.0040c9d0
lea eax, [ebp - 0x128]
push eax
lea ecx, [edi + 0x92c]
call fcn.004c5800
cmp eax, 0xffffffff
je 0x51c30f
mov esi, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::ShowWindow_wchar_t_const___bool_]
mov ecx, edi
push 1
push str.imgOK
call esi
push 0
jmp 0x51c357
push ecx
mov esi, esp
mov dword [ebp - 0x130], esp
mov dword [ebp - 0x12c], esi
mov ecx, dword [ebp - 0x128]
lea ecx, [ecx - 0x10]
call fcn.0040c950
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 9
call fcn.004df460
add esp, 4
test eax, eax
jne 0x51c362
mov esi, dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::WindowImplBase::ShowWindow_wchar_t_const___bool_]
mov ecx, edi
push eax
push str.imgOK
call esi
push 1
push str.imgNO
mov ecx, edi
call esi
jmp 0x51c3ac
mov eax, dword [edi + 0x928]
test eax, eax
je 0x51c38b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x928]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x928], 0
lea eax, [ebp - 0x134]
push eax
push 0
push edi
push 0x51c400
push 0
push 0
call fcn.005b6ff3
add esp, 0x18
mov dword [edi + 0x928], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x128]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51c3cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CStdString::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4