Function at 0x422550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0568
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x515e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x5159f8]
mov esi, dword [edi]
mov ecx, 0x5159f8
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x4225e1
test esi, 0xffff0000
jne 0x4225e1
movzx esi, si
push 0
push esi
call fcn.00403010
add esp, 8
test eax, eax
je 0x4225ea
push esi
push eax
lea ecx, [ebp + 8]
call fcn.00406a50
jmp 0x4225ea
push esi
lea ecx, [ebp + 8]
call fcn.004026c0
lea eax, [ebp + 8]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.00447660
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov esi, dword [eax - 0xc]
add esp, 8
cmp dword [eax - 4], 1
jle 0x42261a
push esi
lea ecx, [ebp + 8]
call fcn.00405180
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
call fcn.00410a60
add esp, 0xc
test al, al
jne 0x422649
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], al
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x422a85
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0049d210
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
mov edi, eax
push 0
push edi
mov dword [ebp - 0x24], edi
call fcn.0049f660
add esp, 0x10
test edi, edi
jne 0x42268a
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x422a85
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 0
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4226a9
push esi
lea ecx, [ebp + 8]
call fcn.00405180
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push edi
push esi
push eax
call fcn.00410460
add esp, 0x14
test al, al
jne 0x4226de
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], al
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x422a85
mov eax, dword [ebp - 0x14]
mov ecx, 0x5159f8
mov byte [eax + edi], 0
mov eax, dword [0x5159f8]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
test edi, 0xffff0000
jne 0x422727
movzx eax, di
push 0
push eax
mov dword [ebp - 0x20], eax
call fcn.00403010
add esp, 8
test eax, eax
je 0x422733
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.00406b10
jmp 0x422730
push edi
lea ecx, [ebp - 0x18]
call fcn.00402750
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 4
jl 0x42275c
push str._BEGIN_RSA_PRIVATE_KEY_
push esi
call fcn.0049ef52
add esp, 8
test eax, eax
je 0x42275c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42275c
mov byte [ebx + 0x1c], 1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422761
sub ecx, edx
push ecx
push edi
call fcn.00448ee0
add esp, 8
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x42284e
push str.BIO_new_mem_buf_
lea ecx, [ebp - 0x20]
call fcn.00401c40
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.0042fa40
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00402610
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4227eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42280b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 4
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42282b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.004224e0
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x422a65
cmp byte [ebx + 0x1c], 0
je 0x422906
push 0
push 0
push 0
push eax
call fcn.0044ad50
add esp, 0x10
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x4229c4
push str.PEM_read_bio_RSAPrivateKey_
lea ecx, [ebp - 0x1c]
call fcn.00401c40
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 9
call fcn.0042fa40
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.00402610
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 9
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4228de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4228fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
jmp 0x42280e
call fcn.00422b60
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, al
jne 0x42291c
call edi
mov dword [0x517280], eax
push 0
push 0
push 0
push dword [ebx + 0x10]
call fcn.0044adb0
add esp, 0x10
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x4229a9
push str.PEM_read_bio_RSAPublicKey_
lea ecx, [ebp - 0x1c]
call fcn.00401c40
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 0xb
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xc
call fcn.0042fa40
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.00402610
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0xc
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4229a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
jmp 0x4228e2
call fcn.00410bf0
test al, al
jne 0x4229c4
call edi
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x517280], edx
push dword [ebx + 0x14]
call fcn.00449630
add esp, 4
mov dword [ebx + 0x18], eax
test eax, eax
jg 0x422a4b
push str.RSA_size_
lea ecx, [ebp - 0x1c]
call fcn.00401c40
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
mov byte [ebp - 4], 0xe
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xf
call fcn.0042fa40
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x10
call fcn.00402610
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0xf
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422a42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
jmp 0x4228e2
add esi, 0xfffffff0
or edi, 0xffffffff
mov byte [ebx + 0xc], 1
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422a6f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422a8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00422b00
test al, al
jne 0x422ab9
mov esi, dword [0x517280]
mov ecx, 1
cmp esi, ecx
jle 0x422ab3
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x422aa7
mov dword [0x517280], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x422ac9
push eax
call fcn.0049ee63
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x422aea
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 esp, ebp
pop ebp
ret 4