Function at 0x50ced0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x24]
mov dword [esp], edi
call fcn.004ebde0
mov esi, eax
cmp eax, dword [ebp + 0x20]
jne 0x50d038
cmp dword [ebp + 8], 0x72
je 0x50cff0
mov dword [esp + 8], 0xac
mov dword [esp + 4], str.crypto_rsa_rsa_sign.c
mov dword [esp], esi
call fcn.004f28b0
mov ebx, eax
test eax, eax
je 0x50d17c
cmp dword [ebp + 8], 0x72
je 0x50d070
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004ebe4c
mov esi, eax
test eax, eax
jle 0x50d0f4
cmp dword [ebp + 8], 0x72
je 0x50d0b4
mov dword [ebp - 0x1c], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00525958
mov edx, eax
test eax, eax
je 0x50d0f4
lea esi, [ebx + esi]
cmp dword [ebp - 0x1c], esi
je 0x50d110
mov dword [esp + 0x10], 0xc8
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x68
mov dword [esp + 4], 0x91
mov dword [esp], 4
mov dword [ebp - 0x30], edx
call fcn.004f2144
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
mov dword [ebp - 0x30], eax
call fcn.005259bc
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x20]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [ebp - 0x30], eax
call fcn.00503b18
mov dword [esp], ebx
call fcn.004f2b90
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x50cef9
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.004ebe4c
test eax, eax
jle 0x50d0ec
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0x10], 0x9e
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x77
mov dword [esp + 4], 0x91
mov dword [esp], 4
call fcn.004f2144
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
cmp dword [ebp + 0x10], 0x24
je 0x50cf25
mov dword [esp + 0x10], 0xb3
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x83
mov dword [esp + 4], 0x91
mov dword [esp], 4
call fcn.004f2144
xor eax, eax
test ebx, ebx
jne 0x50cfca
jmp 0x50d066
cmp eax, 0x24
je 0x50d0f8
mov dword [esp + 0x10], 0xbd
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x68
mov dword [esp + 4], 0x91
mov dword [esp], 4
call fcn.004f2144
xor eax, eax
jmp 0x50d0a8
xor eax, eax
jmp 0x50d066
xor eax, eax
jmp 0x50d0a8
mov ecx, 0x24
mov esi, ebx
mov edi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
jne 0x50d0b9
mov eax, 1
jmp 0x50d0a8
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x50d132
mov dword [esp], ecx
mov dword [ebp - 0x30], edx
call fcn.0054c734
cmp eax, 5
mov edx, dword [ebp - 0x30]
jne 0x50d1b0
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x30], edx
call fcn.004f99e8
cmp eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
je 0x50d200
cmp dword [ebp + 8], 4
je 0x50d1cd
cmp dword [ebp + 8], 3
jne 0x50d15c
cmp eax, 7
je 0x50d1d2
mov dword [esp + 0x10], 0xec
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x64
jmp 0x50cfa0
mov dword [esp + 0x10], 0xaf
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x91
mov dword [esp], 4
call fcn.004f2144
xor eax, eax
jmp 0x50d066
mov dword [esp + 0x10], 0xd1
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x68
jmp 0x50cfa0
cmp eax, 8
jne 0x50d15c
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x34
mov dword [esp + 4], 1
mov dword [esp], str.signature_has_problems__re_make_with_post_SSLeay045_n
mov dword [ebp - 0x30], edx
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x50d29e
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x30], edx
call fcn.004f9580
mov dword [esp], eax
call fcn.004f7d74
test eax, eax
mov edx, dword [ebp - 0x30]
je 0x50d277
mov dword [esp], eax
call fcn.00502a80
mov ecx, eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
mov esi, dword [eax]
mov dword [ebp - 0x2c], esi
cmp ecx, esi
je 0x50d27f
mov dword [esp + 0x10], 0xf6
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x8f
mov dword [esp + 4], 0x91
mov dword [esp], 4
call fcn.004f2144
xor eax, eax
mov edx, dword [ebp - 0x30]
jmp 0x50cfbc
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov esi, dword [eax + 8]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, 1
jmp 0x50cfbc
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
cmp dword [eax], ecx
jne 0x50d2d3
mov eax, dword [eax + 8]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov esi, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [ebp - 0x30], edx
call sub.msvcrt.dll_memcmp
mov ecx, eax
mov eax, 1
test ecx, ecx
mov edx, dword [ebp - 0x30]
je 0x50cfbc
mov dword [esp + 0x10], 0x102
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x68
jmp 0x50cfa0