Function at 0x471720
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
lea eax, [esi + 0x826]
mov dword [ebp - 4], eax
test edi, edi
je 0x47197a
mov eax, dword [edi]
test eax, eax
je 0x47197a
cmp dword [eax], 1
jne 0x471763
push dword [edi + 4]
lea ecx, [ebp - 4]
call fcn.00471330
mov ecx, eax
add esp, 4
test ecx, ecx
jns 0x47178c
jmp 0x47178e
test eax, eax
je 0x47197a
cmp dword [eax], 2
jne 0x47197a
push dword [edi + 4]
lea ecx, [ebp - 4]
call fcn.004715d0
mov ecx, eax
add esp, 4
test ecx, ecx
js 0x47197f
mov eax, ecx
test ecx, ecx
js 0x47197f
mov edx, dword [ebp - 4]
mov eax, edx
sub eax, esi
cmp eax, 1
jl 0x47196e
dec edx
lea ebx, [ecx + 1]
mov dword [ebp - 4], edx
lea ecx, [ebp - 4]
push ebx
mov byte [edx], 0
mov edx, esi
call fcn.004926f0
add esp, 4
test eax, eax
js 0x47197f
mov ecx, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, ecx
sub eax, esi
cmp eax, 1
jl 0x47196e
dec ecx
mov dword [ebp - 4], ecx
mov byte [ecx], 3
mov eax, dword [edi]
test eax, eax
je 0x4717ec
mov edx, dword [eax]
jmp 0x4717ee
xor edx, edx
cmp dword [0x572788], 0
mov eax, 0x572788
je 0x47180d
nop dword [eax]
cmp dword [eax + 0x10], edx
je 0x471819
add eax, 0x14
cmp dword [eax], 0
jne 0x471800
mov eax, 0xffffffd2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [edi]
mov dword [ebp - 8], edx
test eax, eax
je 0x471878
cmp dword [eax], 2
jne 0x471878
cmp dword [0x5729b0], 0
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, 0x5729b0
je 0x47184d
nop
cmp dword [eax + 0x10], ecx
je 0x47185b
add eax, 0x14
cmp dword [eax], 0
jne 0x471840
mov edi, 0xffffffd2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [eax + 4]
mov edx, esi
lea ecx, [ebp - 4]
push dword [eax]
call fcn.00492870
mov edi, eax
add esp, 8
test edi, edi
js 0x471852
mov ecx, dword [ebp - 4]
jne 0x4718a5
mov eax, ecx
sub eax, esi
cmp eax, 1
jl 0x47196e
lea eax, [ecx - 1]
mov byte [ecx - 1], 0
sub eax, esi
cmp eax, 1
jl 0x47196e
sub ecx, 2
mov edi, 2
mov dword [ebp - 4], ecx
mov byte [ecx], 5
cmp ecx, esi
jb 0x4718ff
mov eax, ecx
sub eax, esi
cmp eax, ebx
jb 0x4718ff
push ebx
push dword [ebp - 8]
sub ecx, ebx
push ecx
mov dword [ebp - 4], ecx
call fcn.00524840
add esp, 0xc
test ebx, ebx
js 0x471904
push ebx
mov edx, esi
lea ecx, [ebp - 4]
call fcn.004926f0
add esp, 4
test eax, eax
js 0x47197f
mov ecx, dword [ebp - 4]
lea edx, [eax + 1]
mov eax, ecx
sub eax, esi
cmp eax, 1
jl 0x4718f8
dec ecx
lea eax, [edx + ebx]
mov dword [ebp - 4], ecx
mov byte [ecx], 6
jmp 0x471906
mov eax, 0xffffff94
jmp 0x471936
mov ebx, 0xffffff94
mov eax, ebx
test eax, eax
js 0x47197f
add edi, eax
lea ecx, [ebp - 4]
push edi
mov edx, esi
call fcn.004926f0
add esp, 4
test eax, eax
js 0x47197f
mov ecx, dword [ebp - 4]
add edi, eax
mov eax, ecx
sub eax, esi
cmp eax, 1
jl 0x47196e
dec ecx
lea eax, [edi + 1]
mov dword [ebp - 4], ecx
mov byte [ecx], 0x30
test eax, eax
js 0x47197f
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
inc edi
mov edx, esi
add edi, eax
push edi
call fcn.004926f0
add esp, 4
test eax, eax
js 0x47197f
mov ecx, dword [ebp - 4]
add edi, eax
mov eax, ecx
sub eax, esi
cmp eax, 1
jl 0x47196e
mov byte [ecx - 1], 0x30
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffc680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret