Function at 0x4a3b86
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 3
jne 0x4a3c7e
cmp dword [ebp - 0xc], 0
jne 0x4a3bd7
sub esp, 4
push 0x1b9
push str._home_wk_src_gpg4win_build_gpg4win_1.1.3_src_playground_build_gnupg_1.4.7_util_iobuf.c
push str.size
call sub.msvcrt.dll__assert
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4a3bf5
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x4a3df3
mov dword [ebp - 0x10], 0
sub esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
jne 0x4a3c52
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x4a3c71
sub esp, 4
sub esp, 8
push 0
call fcn.004a0943
add esp, 0xc
push eax
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push str._s:_read_error:__s_n
call fcn.0049d87b
add esp, 0x10
mov dword [ebp - 0x14], 0x15
jmp 0x4a3c71
cmp dword [ebp - 0x18], 0
jne 0x4a3c6b
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4a3c71
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x4a3df3
cmp dword [ebp + 0xc], 4
jne 0x4a3d22
cmp dword [ebp - 0xc], 0
je 0x4a3d15
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4a3cf0
sub esp, 0xc
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 8]
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
jne 0x4a3cf0
sub esp, 4
sub esp, 8
push 0
call fcn.004a0943
add esp, 0xc
push eax
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push str._s:_write_error:__s_n
call fcn.0049d87b
add esp, 0x10
mov dword [ebp - 0x14], 0x16
jmp 0x4a3d08
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
add dword [eax], edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
sub dword [eax], edx
cmp dword [ebp - 0x10], 0
je 0x4a3d08
jmp 0x4a3c9e
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x4a3df3
cmp dword [ebp + 0xc], 1
jne 0x4a3d4b
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
jmp 0x4a3df3
cmp dword [ebp + 0xc], 5
jne 0x4a3d5f
mov eax, dword [ebp + 0x14]
mov dword [eax], str.file_filter_fd_
jmp 0x4a3df3
cmp dword [ebp + 0xc], 2
jne 0x4a3df3
sub esp, 0xc
push 0xfffffffffffffff6
call sub.KERNEL32.dll_GetStdHandle
add esp, 0xc
cmp eax, dword [ebp - 8]
je 0x4a3de5
sub esp, 0xc
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
add esp, 0xc
cmp eax, dword [ebp - 8]
je 0x4a3de5
cmp dword [0x4fdfa0], 0
je 0x4a3db0
sub esp, 4
push dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push str._s:_close_handle__p_n
call fcn.0049d984
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4a3de5
sub esp, 8
push dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4a3dd3
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 0x20], eax
jmp 0x4a3dda
mov dword [ebp - 0x20], 0
push dword [ebp - 0x20]
call fcn.004a393e
add esp, 0x10
sub esp, 0xc
push dword [ebp - 4]
call fcn.004a2f78
add esp, 0x10
mov eax, dword [ebp - 0x14]
leave
ret