Function at 0x50e130
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.004ed040
mov esi, eax
cmp eax, dword [ebp + 0x20]
jne 0x50e298
cmp dword [ebp + 8], 0x72
je 0x50e250
mov dword [esp + 8], 0xac
mov dword [esp + 4], str.crypto_rsa_rsa_sign.c
mov dword [esp], esi
call fcn.004f3b10
mov ebx, eax
test eax, eax
je 0x50e3dc
cmp dword [ebp + 8], 0x72
je 0x50e2d0
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.004ed0ac
mov esi, eax
test eax, eax
jle 0x50e354
cmp dword [ebp + 8], 0x72
je 0x50e314
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.00526bb8
mov edx, eax
test eax, eax
je 0x50e354
lea esi, [ebx + esi]
cmp dword [ebp - 0x1c], esi
je 0x50e370
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.004f33a4
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
mov dword [ebp - 0x30], eax
call fcn.00526c1c
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.00504d78
mov dword [esp], ebx
call fcn.004f3df0
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 0x50e159
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.004ed0ac
test eax, eax
jle 0x50e34c
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.004f33a4
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
cmp dword [ebp + 0x10], 0x24
je 0x50e185
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.004f33a4
xor eax, eax
test ebx, ebx
jne 0x50e22a
jmp 0x50e2c6
cmp eax, 0x24
je 0x50e358
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.004f33a4
xor eax, eax
jmp 0x50e308
xor eax, eax
jmp 0x50e2c6
xor eax, eax
jmp 0x50e308
mov ecx, 0x24
mov esi, ebx
mov edi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
jne 0x50e319
mov eax, 1
jmp 0x50e308
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x50e392
mov dword [esp], ecx
mov dword [ebp - 0x30], edx
call fcn.0054d974
cmp eax, 5
mov edx, dword [ebp - 0x30]
jne 0x50e410
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x30], edx
call fcn.004fac48
cmp eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
je 0x50e460
cmp dword [ebp + 8], 4
je 0x50e42d
cmp dword [ebp + 8], 3
jne 0x50e3bc
cmp eax, 7
je 0x50e432
mov dword [esp + 0x10], 0xec
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x64
jmp 0x50e200
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.004f33a4
xor eax, eax
jmp 0x50e2c6
mov dword [esp + 0x10], 0xd1
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x68
jmp 0x50e200
cmp eax, 8
jne 0x50e3bc
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 0x50e4fe
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x30], edx
call fcn.004fa7e0
mov dword [esp], eax
call fcn.004f8fd4
test eax, eax
mov edx, dword [ebp - 0x30]
je 0x50e4d7
mov dword [esp], eax
call fcn.00503ce0
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 0x50e4df
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.004f33a4
xor eax, eax
mov edx, dword [ebp - 0x30]
jmp 0x50e21c
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 0x50e21c
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
cmp dword [eax], ecx
jne 0x50e533
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 0x50e21c
mov dword [esp + 0x10], 0x102
mov dword [esp + 0xc], str.crypto_rsa_rsa_sign.c
mov dword [esp + 8], 0x68
jmp 0x50e200