Function at 0x4a5d38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x20]
je 0x4a5d63
sub esp, 4
push 0x5d5
push str._home_wk_src_gpg4win_build_gpg4win_1.1.3_src_playground_build_gnupg_1.4.7_util_iobuf.c
push str.a__d.start__a__d.len
call sub.msvcrt.dll__assert
mov eax, dword [ebp + 8]
cmp dword [eax], 3
jne 0x4a5d77
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4a61a9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0
je 0x4a5e50
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
je 0x4a5e15
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0xc], eax
cmp dword [0x4fdfa0], 0
je 0x4a5dc2
mov eax, dword [ebp + 8]
push dword [eax + 0x4c]
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_pop___s_in_underflow_n
call fcn.0049d984
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp + 8]
push dword [eax + 0x24]
call fcn.004a2f78
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call fcn.004a2f78
add esp, 0x10
sub esp, 4
push 0x64
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call fcn.004a2f78
add esp, 0x10
sub esp, 0xc
push dword [ebp + 8]
call fcn.004a4a6d
add esp, 0x10
jmp 0x4a5e1f
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0
cmp dword [0x4fdfa0], 0
je 0x4a5e44
sub esp, 4
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_underflow:_eof__due_to_filter_eof__n
call fcn.0049d984
add esp, 0x10
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4a61a9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x4a5e8a
cmp dword [0x4fdfa0], 0
je 0x4a5e7e
sub esp, 4
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_error_n
call fcn.0049d984
add esp, 0x10
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4a61a9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4a5f24
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x24]
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 4]
jbe 0x4a5ede
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
and eax, 0x20
test eax, eax
je 0x4a5ede
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
cmp dword [ebp - 4], 0
je 0x4a5f12
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
add edx, dword [ecx + 0x24]
mov ecx, 0
mov cl, byte [edx]
mov dword [ebp - 0x18], ecx
inc dword [eax + 0x1c]
jmp 0x4a5f19
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jmp 0x4a61a9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x4a617d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
cmp dword [0x4fdfa0], 0
je 0x4a5f5f
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_underflow:_req_lu_n
call fcn.0049d984
add esp, 0x10
sub esp, 0xc
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x24]
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
push 3
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, dword [edx + 0x30]
call eax
add esp, 0x20
mov dword [ebp - 8], eax
cmp dword [0x4fdfa0], 0
je 0x4a5fb3
sub esp, 0xc
push dword [ebp - 8]
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_underflow:_got_lu_rc_d_n
call fcn.0049d984
add esp, 0x20
mov eax, dword [ebp + 8]
cmp dword [eax], 1
jne 0x4a610a
cmp dword [ebp - 8], 0xffffffff
jne 0x4a610a
mov dword [ebp - 0xc], 0
sub esp, 0xc
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, dword [edx + 0x30]
call eax
add esp, 0x20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a601a
sub esp, 8
sub esp, 4
push dword [ebp - 8]
call fcn.004a8910
add esp, 8
push eax
push str.IOBUFCTRL_FREE_failed:__s_n
call fcn.0049d87b
add esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
je 0x4a6047
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x4a6047
sub esp, 0xc
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call fcn.004a2f78
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 1
cmp dword [ebp - 4], 0
jne 0x4a611a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
je 0x4a611a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x10], eax
cmp dword [0x4fdfa0], 0
je 0x4a60b7
mov eax, dword [ebp + 8]
push dword [eax + 0x4c]
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_pop___s_in_underflow___len__n
call fcn.0049d984
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp + 8]
push dword [eax + 0x24]
call fcn.004a2f78
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call fcn.004a2f78
add esp, 0x10
sub esp, 4
push 0x64
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x10]
call fcn.004a2f78
add esp, 0x10
sub esp, 0xc
push dword [ebp + 8]
call fcn.004a4a6d
add esp, 0x10
jmp 0x4a611a
cmp dword [ebp - 8], 0
je 0x4a611a
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 1
cmp dword [ebp - 4], 0
jne 0x4a614e
cmp dword [0x4fdfa0], 0
je 0x4a6145
sub esp, 4
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_underflow:_eof_n
call fcn.0049d984
add esp, 0x10
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4a61a9
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
add edx, dword [ecx + 0x24]
mov dl, byte [edx]
and edx, 0xff
inc dword [eax + 0x1c]
mov dword [ebp - 0x14], edx
jmp 0x4a61a9
cmp dword [0x4fdfa0], 0
je 0x4a61a2
sub esp, 4
mov eax, dword [ebp + 8]
push dword [eax + 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
push str.iobuf__d._d:_underflow:_eof__no_filter__n
call fcn.0049d984
add esp, 0x10
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
leave
ret