Function at 0x4bac30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x1c], 0
mov edx, dword [ebx + 4]
mov ecx, edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
lea esi, [ecx + 1]
mov dword [ebp - 8], 0
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bac70
sub ecx, esi
push 2
push ecx
push edx
call fcn.00431b20
add esp, 0xc
push 0
push 0x82
push 4
push 0
push 1
push connect
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bafa7
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4bad38
push 4
push str.com.freerdp.crypto
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4bafa0
call fcn.005814b7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
call fcn.005811b1
add esp, 4
push eax
push dword [ebx + 8]
push str.GetFileSize__s__returned__s__0x_08I32X_
push str.certificate_data_match_raw
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcryptocertificate.c
push 0x12c
push 4
push 0
push str.com.freerdp.crypto
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x20]
xor esi, esi
or esi, eax
or ebx, 0
ja 0x4bad53
jb 0x4bafa0
cmp esi, 1
jb 0x4bafa0
lea eax, [esi + 2]
push eax
call fcn.0058023c
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4bafa0
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4baf95
xor eax, eax
cmp dword [ebp - 0x24], esi
jne 0x4baf95
cmp eax, ebx
jne 0x4baf95
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push 0x5b5e4c
mov byte [esi + eax], 0xa
mov eax, dword [ebp - 4]
mov byte [esi + eax + 1], 0
lea eax, [ebp - 4]
push eax
call fcn.00431290
mov ebx, dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x4baf6a
jmp 0x4badd0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4badd5
sub ecx, edx
je 0x4baea3
push ecx
push esi
call fcn.004bb9f0
add esp, 8
test eax, eax
jne 0x4baea3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.004bba30
add esp, 0x18
test eax, eax
jne 0x4bae69
push 3
push str.com.freerdp.crypto
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x4baea3
push esi
push str.known_hosts2
push str.Invalid__s_entry__s_
push str.certificate_data_match_raw
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcryptocertificate.c
push 0x15b
push 3
push 0
push str.com.freerdp.crypto
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x24
jmp 0x4baea3
mov eax, dword [ebx]
jmp 0x4bae70
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4bae90
test cl, cl
je 0x4bae8c
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4bae90
add esi, 2
add eax, 2
test cl, cl
jne 0x4bae70
xor eax, eax
jmp 0x4bae95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4baea3
mov ax, word [ebp - 8]
cmp ax, word [ebx + 4]
je 0x4baec3
lea eax, [ebp - 4]
push 0x5b5e4c
push eax
call fcn.00431290
mov esi, eax
add esp, 8
test esi, esi
jne 0x4badd0
jmp 0x4baf6a
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x4baf14
mov eax, dword [ebx + 0x10]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4baef6
test dl, dl
je 0x4baef2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4baef6
add eax, 2
add ecx, 2
test dl, dl
jne 0x4baed6
xor eax, eax
jmp 0x4baefb
sbb eax, eax
or eax, 1
mov esi, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4baf14
push edi
call fcn.00580c20
add esp, 4
mov dword [esi], eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4baf3f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4baf3f
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4baf27
lea eax, [ebp - 0xc]
sub ecx, edi
push eax
push esi
push ecx
push edx
call sym.wfreerdp.exe_crypto_base64_decode
add esp, 0x10
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x4baf6a
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4baf6a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4baf52
lea eax, [ebp - 0xc]
sub ecx, edi
push eax
push esi
push ecx
push edx
call sym.wfreerdp.exe_crypto_base64_decode
add esp, 0x10
push dword [ebp - 0x28]
call fcn.00580204
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x4bafac
cmp dword [ebp - 0x1c], 0
jne 0x4bafac
push ebx
push dword [ebp + 8]
call fcn.004ba8c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.00580204
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret