Function at 0x416330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e52f
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5a5784]
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 dword [ebp - 0x10], esp
mov ebx, ecx
push str._PSWCHK_CPasswordOperation::Run__.__n
push 0x40000
mov dword [ebp - 0x434], ebx
call fcn.0041abf0
add esp, 8
push 0x5ad61c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5ae160
push 0x5adf58
push str.Get_SNMP_Community_option_____Set_Community___s._Get_Community___s_._n
mov ecx, 0x104
mov esi, 0x5adf58
lea edi, [ebp - 0x424]
push 0x80000
rep movsd dword es:[edi], dword [esi]
call fcn.0041abf0
lea eax, [ebp - 0x21c]
add esp, 0x10
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4163c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x5ae374
call fcn.00401d20
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4163f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x424]
push ecx
mov ecx, 0x5ae370
call fcn.00401d20
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x430], 0x40
cmp esi, 0x40
jg 0x416429
mov dword [ebp - 0x430], esi
xor ecx, ecx
mov eax, esi
mov edx, 0x18
mul edx
seto cl
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00430e26
add esp, 4
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41647f
push 0x416770
push 0x416760
push esi
lea edi, [eax + 4]
push 0x18
push edi
mov dword [eax], esi
call fcn.005253df
jmp 0x416481
xor edi, edi
mov dword [ebp - 0x428], edi
push esi
mov byte [ebp - 4], 2
call fcn.00430e26
add esp, 4
mov dword [ebp - 0x42c], eax
xor edi, edi
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], edi
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x444]
push edx
push eax
push ecx
lea eax, [ebp - 0x448]
push eax
call fcn.0041a430
mov eax, dword [ebx + 0x28]
mov esi, dword [eax]
add esp, 0x10
mov ecx, dword [ebp - 0x434]
cmp esi, dword [ecx + 0x28]
je 0x416546
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x42c]
lea eax, [edi + edi*2]
lea ebx, [ecx + eax*8]
lea eax, [ebp - 0x444]
mov ecx, ebx
mov byte [edi + edx], 0
call fcn.004041f0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x434]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], eax
inc edi
cmp byte [esi + 0x21], 0
jne 0x4164d4
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0x416530
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0x416524
jmp 0x4164d4
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0x416542
cmp esi, dword [eax + 8]
jne 0x416542
mov esi, eax
jmp 0x416530
mov esi, eax
jmp 0x4164d4
mov eax, dword [ebp - 0x430]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430e26
add esp, 4
mov esi, eax
xor ebx, ebx
lea esp, [esp]
mov edi, dword [ebp - 0x430]
cmp ebx, edi
jge 0x4165f7
mov ecx, dword [ebp - 0x428]
push 0
push 0
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
push eax
push 0x4167e0
push 0
push 0
call fcn.00525509
add esp, 0x18
mov dword [esi + ebx*4], eax
test eax, eax
jne 0x4165f1
push ebx
push str._PSWCHK__error__Password_confirm_start_failed_in_Threads___d__n
push 0x80000
call fcn.0041abf0
lea eax, [ebx - 1]
add esp, 0xc
test eax, eax
jle 0x4165e4
push 0xffffffffffffffff
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
jmp 0x4165d0
lea eax, [ebx - 1]
cmp edi, eax
jge 0x4165e4
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
jmp 0x4165d0
test esi, esi
je 0x4165f1
push esi
call fcn.00430e1b
add esp, 4
inc ebx
jmp 0x416570
push edi
push str._PSWCHK__Password_confirm_start_with___d__Threads__n
push 0x80000
call fcn.0041abf0
add esp, 0xc
cmp edi, ebx
jne 0x416638
test esi, esi
je 0x41661e
push 0xffffffffffffffff
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebx, ebx
cmp ebx, edi
jge 0x416638
mov eax, dword [esi + ebx*4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + ebx*4], 0
inc ebx
jmp 0x416620
push edi
push str._PSWCHK__Password_confirm_end_with___d__Threads__n
push 0x80000
call fcn.0041abf0
add esp, 0xc
push esi
call fcn.00430e1b
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x444]
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x4166a6
mov edi, dword [ebp - 0x440]
lea ebx, [ebx]
cmp esi, edi
je 0x416697
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
jmp 0x416670
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00430e1b
add esp, 4
mov edx, dword [ebp - 0x42c]
push edx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
call fcn.00430e1b
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x428]
add esp, 4
cmp eax, ebx
je 0x4166f1
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x416770
push ecx
push 0x18
push eax
call fcn.00525607
push esi
call fcn.00430e1b
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5ad61c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push str._PSWCHK_CPasswordOperation::Run___over_._n
push 0x80000
call fcn.0041abf0
add esp, 8
xor eax, eax
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.0052442d
mov esp, ebp
pop ebp
ret