Function at 0x486cd4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._calloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486d54
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x501b48
mov dword [esp + 8], str.w_wpk_cert
mov dword [esp + 4], 0xb7
mov dword [esp], str.os_crypto_signature_signature.c
call dbg._merror_exit
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], edx
call sym._fread
test eax, eax
jne 0x486d8f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0x2d
jmp 0x486e27
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x486e27
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._feof
test eax, eax
jne 0x486e27
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x486d54
shl dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._realloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486d54
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x501b48
mov dword [esp + 8], str.w_wpk_cert
mov dword [esp + 4], 0xc9
mov dword [esp], str.os_crypto_signature_signature.c
call dbg._merror_exit
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x486e6f
mov dword [esp + 0xc], str.Couldnt_get_certificate_from_WPK_file.
mov dword [esp + 8], str.w_wpk_cert
mov dword [esp + 4], 0xce
mov dword [esp], str.os_crypto_signature_signature.c
call dbg._merror
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0
jmp 0x486f0a
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._BIO_new_mem_buf
mov dword [ebp - 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._PEM_read_bio_X509
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x486ef1
mov dword [esp + 0xc], str.Invalid_certificate_in_WPK_file.
mov dword [esp + 8], str.w_wpk_cert
mov dword [esp + 4], 0xd6
mov dword [esp], str.os_crypto_signature_signature.c
call dbg._merror
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._BIO_free_all
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, 0
jmp 0x486f0a
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._BIO_free_all
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 4]
leave
ret