Function at 0x40b220
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.0049e100
mov edi, dword [esp + 0x1024]
mov ebp, dword [esp + 0x1020]
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 0x1008], eax
mov esi, dword [0x4c7784]
push esi
call fcn.0042e7f0
add esp, 4
push esi
call fcn.0042e860
add esp, 4
mov esi, eax
push 0
call fcn.0042e800
add esp, 4
test esi, esi
je 0x40b27d
push dword [esi + 0x54]
call fcn.0042e800
add esp, 4
push 0
push 0x88
push ebp
call fcn.00434b90
add esp, 0xc
push ebp
push 0
call fcn.0042f260
add esp, 8
push edi
call fcn.004061a0
add esp, 4
mov esi, eax
push ebp
push eax
call fcn.00406210
add esp, 8
mov bl, 1
test al, al
je 0x40b2da
push ebp
call fcn.004355d0
add esp, 4
test al, al
jne 0x40b598
push ebp
call fcn.0041d960
add esp, 4
test al, al
jne 0x40b598
jmp 0x40b69c
push ebp
push esi
call fcn.00406280
add esp, 8
test al, al
jne 0x40b598
cmp byte [esi], 0
je 0x40b596
call fcn.004389d0
mov dword [esp], eax
mov eax, dword [eax]
mov esi, dword [eax]
test esi, esi
je 0x40b5d4
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x40b340
push edi
push str.option___s__requires_an_argument
call fcn.004063a0
add esp, 8
mov eax, dword [esp]
mov eax, dword [eax]
mov esi, dword [eax + ebp*4]
mov ebx, ebp
test esi, esi
je 0x40b54d
mov ebp, dword [eax + ebx*4 + 4]
push esi
call fcn.00438bf0
add esp, 4
mov edi, eax
push dword [esp + 0x1020]
push 1
push ebp
push esi
call fcn.0042cb30
add esp, 0x10
cmp eax, 2
je 0x40b440
lea ebp, [ebx + 1]
cmp eax, 1
je 0x40b32e
cmp eax, 0xfffffffe
je 0x40b320
push 0x4e337f
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b635
push str._pgpfp
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b68b
cmp byte [0x4cecb0], 0
je 0x40b405
push 0x4e9852
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b62c
push str.__host_ca
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b62c
push 0x4e9848
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b62c
push 0x4e9847
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b62c
push str._demo_config_box
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b44a
push str._demo_terminal
push edi
call fcn.004b12e0
add esp, 8
test eax, eax
je 0x40b474
cmp byte [edi], 0x2d
jne 0x40b51b
push edi
push str.unknown_option___s_
jmp 0x40b326
add ebx, 2
mov ebp, ebx
jmp 0x40b32e
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4 + 4]
test eax, eax
je 0x40b531
add ebx, 2
push eax
call fcn.00438c10
add esp, 4
mov dword [0x503c68], eax
mov al, 1
mov dword [esp + 4], eax
jmp 0x40b443
mov eax, dword [esp]
mov ecx, dword [eax]
mov eax, dword [ecx + ebx*4 + 4]
test eax, eax
je 0x40b526
cmp dword [ecx + ebx*4 + 8], 0
je 0x40b526
push eax
call fcn.00438bf0
add esp, 4
mov esi, eax
mov eax, dword [esp]
mov eax, dword [eax]
push dword [eax + ebx*4 + 8]
call fcn.00438c10
add esp, 4
mov dword [0x503c24], eax
push 0x4e9697
push esi
call fcn.004adff8
add esp, 8
mov edi, eax
test eax, eax
jne 0x40b4d3
push esi
push str.cant_open_input_file__s
call fcn.004063a0
add esp, 8
call fcn.00436810
mov dword [0x503c28], eax
push edi
push 0x1000
push 1
lea esi, [esp + 0x14]
nop
nop
nop
nop
nop
nop
nop
push esi
call fcn.004afc70
add esp, 0x10
test eax, eax
jle 0x40b53c
mov ecx, dword [0x503c28]
add ecx, 0xc
push eax
push esi
push ecx
call fcn.004359a0
add esp, 0xc
push edi
push 0x1000
push 1
jmp 0x40b4f0
push edi
push str.unexpected_argument___s_
jmp 0x40b326
push edi
push str._s_expects_input_and_output_filenames
jmp 0x40b326
push edi
push str._s_expects_an_output_filename
jmp 0x40b326
add ebx, 3
push edi
call fcn.004af49b
add esp, 4
jmp 0x40b443
mov ebp, dword [esp + 0x1020]
push ebp
call fcn.0042e710
add esp, 4
test byte [esp + 4], 1
je 0x40b5dd
mov byte [0x504990], 1
push ebp
push 0
call fcn.0042f2b0
add esp, 8
push str.demo_server.example.com
push 0
push ebp
call fcn.00434e20
add esp, 0xc
push ebp
call fcn.0041d960
add esp, 4
push 0
call fcn.004060c0
xor ebx, ebx
push ebp
call fcn.0042e710
add esp, 4
cmp dword [0x503c28], 0
je 0x40b5e8
push ebp
push 0
call fcn.0042f2b0
add esp, 8
push str.demo_server.example.com
push 0
push ebp
call fcn.00434e20
add esp, 0xc
push 1
push 4
push ebp
call fcn.00434b90
add esp, 0xc
jmp 0x40b60a
push ebp
call fcn.0042e710
add esp, 4
xor ebx, ebx
cmp dword [0x503c28], 0
jne 0x40b5aa
test bl, bl
jne 0x40b60a
push ebp
call fcn.0042e7a0
add esp, 4
test al, al
jne 0x40b60a
push ebp
call fcn.0041d960
add esp, 4
test al, al
je 0x40b69c
push ebp
call fcn.00436660
add esp, 4
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0049e0f0
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
call fcn.0041f130
jmp 0x40b692
mov edi, dword [0x4c7780]
push edi
push str.This_procedure_will_remove_ALL_Registry_entries_nassociated_with__s__and_will_also_remove_nthe_random_seed_file.__This_only_affects_the_ncurrently_logged_in_user.__n_nTHIS_PROCESS_WILL_DESTROY_YOUR_SAVED_SESSIONS._nAre_you_really_sure_you_want_to_continue_
call fcn.00435810
add esp, 8
mov esi, eax
push edi
push str._s_Warning
call fcn.00435810
add esp, 8
mov edi, eax
push 4
push 0
push 0x134
push eax
push esi
push 0
call fcn.00438f00
add esp, 0x18
cmp eax, 6
jne 0x40b67a
call fcn.00431730
push esi
call fcn.004362e0
add esp, 4
push edi
call fcn.004362e0
jmp 0x40b692
push 0
call fcn.00439050
add esp, 4
push 0
call fcn.004aa80e
push 0
call fcn.004060c0
int3