Function at 0x510460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63a614
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov esi, dword [ebx + 0x1f9]
lea eax, [ebx + 0x1f9]
push 0x74
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 0
call fcn.00606edf
add esp, 4
mov dword [ebp - 0x28], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0050e570
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5107e8
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x6a705c]
call esi
cmp eax, 0x80
jne 0x5104ec
xor eax, eax
jmp 0x5104f5
test eax, eax
jne 0x510507
mov eax, dword [0x6a7064]
inc dword [0x6a7068]
inc eax
inc dword [0x6a7060]
mov dword [0x6a7064], eax
mov edi, dword [0x6ac16c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
push 0xffffffffffffffff
push dword [edi]
call esi
cmp eax, 0x80
jne 0x510531
mov dword [edi + 8], 0
jmp 0x510535
test eax, eax
jne 0x510545
inc dword [edi + 0xc]
inc dword [edi + 8]
inc dword [edi + 4]
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 4
mov eax, dword [0x6ac684]
mov ecx, dword [ebp - 0x28]
add eax, 0x347
push eax
call fcn.0050ee60
mov dword [ebp - 4], 3
lea eax, [ebp - 0x48]
mov ecx, dword [0x6ac684]
push eax
lea ecx, [ecx + 0x347]
call fcn.005c0ab0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
jne 0x51058a
mov dword [ebp - 0x30], vtable.CMaaXmlNode.0
xor esi, esi
jmp 0x5105b8
lea eax, [ebp - 0x20]
add ecx, 0x81
push eax
push 0x6ace94
call fcn.005c67a0
mov dword [ebp - 0x30], vtable.CMaaXmlNode.0
test eax, eax
je 0x5105ad
xor esi, esi
jmp 0x5105b8
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x5105b8
lock inc dword [esi + 8]
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x5105ca
mov dword [ebp - 0x20], vtable.CMaaXmlNode.0
xor ebx, ebx
jmp 0x5105f8
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x81]
push 0x6aced8
call fcn.005c67a0
mov dword [ebp - 0x20], vtable.CMaaXmlNode.0
test eax, eax
je 0x5105ed
xor ebx, ebx
jmp 0x5105f8
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x5105f8
lock inc dword [ebx + 8]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 8
lea ecx, [ecx + 0x200]
call fcn.0050f950
mov eax, dword [ebp - 0x38]
test eax, eax
jg 0x510621
cmp dword [0x6ac6c4], 0
jne 0x51062c
dec eax
mov ecx, edi
mov dword [ebp - 0x38], eax
call fcn.005e0810
mov ecx, 0x6a705c
mov byte [ebp - 4], 8
call fcn.005e0810
push 0x20
call fcn.00606edf
add esp, 4
mov edi, eax
push 0
push 0
push 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
mov dword [edi], vtable.CMaaThread.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x10]
push eax
push 0
push edi
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x24]
push 0x5e0ec0
push 0
mov dword [eax], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x18], 0xaa5555aa
mov dword [edi], vtable.CRsaKeysTestThread.0
push 0
mov dword [ecx + 0xc], edi
call fcn.0061408e
mov dword [edi + 0xc], eax
add esp, 0x18
or edi, 0xffffffff
test ebx, ebx
je 0x51072f
mov eax, edi
lock xadd dword [ebx + 8], eax
dec eax
jne 0x51072f
mov ecx, ebx
call fcn.005baee0
mov ecx, dword [0x6b0dec]
call fcn.005e0dc0
mov ecx, dword [0x6ac69c]
test ecx, ecx
je 0x510705
mov eax, dword [ecx + 0x80]
mov dword [ebx], eax
inc dword [ecx + 0x8c]
add dword [ecx + 0x84], edi
mov dword [ecx + 0x80], ebx
jne 0x510705
push ecx
mov dword [0x6ac69c], 0
call fcn.00409820
mov esi, dword [0x6b0dec]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 8]
lea edx, [esi + 8]
nop
cmp ecx, eax
jne 0x51072c
mov eax, dword [esi]
nop
cmp eax, 1
jne 0x510729
mov eax, dword [esi + 4]
xchg dword [edx], eax
lock dec dword [esi]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x5107ad
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x5107ad
mov ecx, esi
call fcn.005baee0
mov ecx, dword [0x6b0dec]
call fcn.005e0dc0
mov ecx, dword [0x6ac69c]
test ecx, ecx
je 0x510786
mov eax, dword [ecx + 0x80]
mov dword [esi], eax
inc dword [ecx + 0x8c]
add dword [ecx + 0x84], 0xffffffff
mov dword [ecx + 0x80], esi
jne 0x510786
push ecx
mov dword [0x6ac69c], 0
call fcn.00409820
mov esi, dword [0x6b0dec]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 8]
lea edx, [esi + 8]
nop
cmp ecx, eax
jne 0x5107ad
mov eax, dword [esi]
nop
cmp eax, 1
jne 0x5107aa
mov eax, dword [esi + 4]
xchg dword [edx], eax
lock dec dword [esi]
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x5107cc
mov eax, edi
lock xadd dword [ebx + 8], eax
dec eax
jne 0x5107cc
mov ecx, ebx
call fcn.005baee0
mov ecx, ebx
call fcn.005bae00
lea ecx, [ebp - 0x3c]
call fcn.0041d9b0
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x40]
jmp 0x5107eb
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax], esi
jne 0x510821
cmp dword [ebx + 0xc], 0
jne 0x510821
push str.RSA_keys_are_failed_to_loaded_or_test
lea eax, [ebp - 0x18]
push eax
call fcn.00531290
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x510821
lock xadd dword [ecx], edi
dec edi
jne 0x510821
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret