Function at 0x40709c
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov eax, dword [0x45c5b0]
test eax, eax
je 0x4070ad
cmp byte [eax], 0
je 0x4070ad
xor eax, eax
ret
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00408bee
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x40738e
mov eax, dword [0x45c5b0]
push ebx
xor ebx, ebx
push ebp
mov byte [eax + 1], 1
mov eax, dword [0x45c5b0]
mov byte [eax + 5], bl
mov eax, dword [0x45c5b0]
mov byte [eax + 4], bl
mov eax, dword [0x45c5b0]
mov byte [eax + 2], 1
mov eax, dword [0x45c5b0]
mov dword [eax + 0x4c], ebx
mov eax, dword [0x45c5b0]
mov byte [eax + 0x50], bl
mov eax, dword [0x45c5b0]
mov byte [eax + 3], 1
mov eax, dword [0x45c5b0]
mov dword [eax + 0x18], 1
mov eax, dword [0x45c5b0]
mov byte [eax + 8], bl
mov eax, dword [0x45c5b0]
mov dword [eax + 0x28], ebx
mov eax, dword [0x45c5b0]
mov dword [eax + 0x38], ebx
mov eax, dword [0x45c5b0]
mov dword [eax + 0x3c], ebx
mov eax, dword [0x45c5b0]
mov dword [eax + 0x40], ebx
mov eax, dword [0x45c5b0]
mov word [eax + 0x68], si
mov eax, dword [0x45c5b0]
mov dword [eax + 0x70], ebx
mov eax, dword [0x45c5b0]
mov dword [eax + 0x74], ebx
mov eax, dword [0x45c5b0]
mov byte [eax + 0x78], bl
mov eax, dword [0x45c5b0]
mov byte [eax + 0x79], bl
mov eax, dword [0x45c5b0]
mov dword [eax + 0x7c], esi
mov eax, dword [0x45c5b0]
mov dword [eax + 0x80], esi
call fcn.004088c8
mov ecx, dword [0x45c5b0]
push 2
pop ebp
mov dword [ecx + 0x1c], eax
mov eax, dword [0x45c5b0]
mov ecx, dword [eax + 0x20]
mov dword [0x45c5a0], ecx
mov eax, dword [eax + 0x24]
mov dword [0x45c5a4], eax
cmp ecx, ebp
jl 0x407373
cmp eax, ebp
jl 0x407373
push ebx
push ebx
push eax
push ecx
call fcn.004080ce
add esp, 0x10
mov dword [0x45c5ac], eax
test eax, eax
je 0x4073aa
push ebx
push ebx
push dword [0x45c5a4]
push dword [0x45c5a0]
call fcn.004080ce
mov ecx, dword [0x45c5b0]
add esp, 0x10
mov dword [ecx + 0x70], eax
mov eax, dword [0x45c5b0]
mov eax, dword [eax + 0x70]
test eax, eax
jne 0x4071fc
push str.initscr__:_Unable_to_create_SP__lastscr._n
jmp 0x4073af
push edi
push esi
push eax
call fcn.004078af
mov eax, dword [0x45c5b0]
push dword [eax + 0x70]
call fcn.004076cb
add esp, 0xc
call fcn.0040842e
mov esi, dword [0x45c5b0]
mov edi, ebx
mov edx, dword [0x45c5a0]
sub edx, dword [esi + 0x30]
mov dword [0x45c5a0], edx
cmp byte [0x45c5b8], bl
jle 0x40729d
cmp dword [edi*8 + 0x45faa0], ebx
jge 0x407250
mov ecx, dword [0x45c5a4]
lea eax, [edx - 1]
push ecx
push ebx
push eax
push ecx
jmp 0x407262
mov ecx, dword [esi + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x3c], eax
mov eax, dword [0x45c5a4]
push eax
push ebx
push ecx
push eax
push 1
call fcn.004080ce
add esp, 0x10
push eax
call dword [edi*8 + 0x45faa4]
mov eax, dword [0x45c5b0]
pop ecx
pop ecx
inc dword [eax + 0x38]
mov edx, dword [0x45c5a0]
movsx eax, byte [0x45c5b8]
dec edx
mov esi, dword [0x45c5b0]
inc edi
mov dword [0x45c5a0], edx
cmp edi, eax
jl 0x407238
push ebx
mov byte [0x45c5b8], bl
push dword [esi + 0x3c]
push dword [0x45c5a4]
push edx
call fcn.004080ce
add esp, 0x10
mov dword [0x45c5a8], eax
pop edi
test eax, eax
jne 0x4072db
push str.initscr__:_Unable_to_create_stdscr._n
push ebp
call fcn.0042a6ad
pop ecx
push eax
call fcn.004073fd
pop ecx
pop ecx
push 1
jmp 0x4073bf
push eax
call fcn.0040761f
mov eax, dword [0x45c5b0]
pop ecx
cmp byte [eax + 0x44], bl
je 0x407316
push dword [0x45c5ac]
call fcn.00408867
push dword [0x45c5a8]
call fcn.00408867
mov eax, dword [0x45c5a8]
pop ecx
pop ecx
mov byte [eax + 0x24], bl
mov eax, dword [0x45c5ac]
mov byte [eax + 0x24], bl
jmp 0x40731f
mov eax, dword [0x45c5ac]
mov byte [eax + 0x24], 1
call fcn.0040902a
or dword [0x45fb64], 0xffffffff
xor eax, eax
or dword [0x45fb60], 0xffffffff
mov dword [0x45fb68], eax
mov word [0x45fb6c], ax
mov eax, dword [0x45c5b0]
mov dword [0x45fb70], ebx
mov byte [eax], 1
call fcn.00407ae5
call fcn.00409024
push eax
push str.pdcursesPDCurses_for__s
push 0x45fae0
call fcn.004012f0
mov eax, dword [0x45c5a8]
add esp, 0xc
pop ebp
pop ebx
pop esi
ret
push eax
push ecx
push str.initscr__:_LINES_d_COLS_d:_too_small._n
push ebp
call fcn.0042a6ad
pop ecx
push eax
call fcn.004073fd
add esp, 0x10
push 4
jmp 0x4073bf
push str.initscr__:_Unable_to_create_SP_n
push 2
call fcn.0042a6ad
pop ecx
push eax
call fcn.004073fd
pop ecx
pop ecx
push 8
call fcn.00427ca9
push str.initscr__:_Unable_to_create_curscr._n
push ebp
call fcn.0042a6ad
pop ecx
push eax
call fcn.004073fd
pop ecx
pop ecx
push ebp
call fcn.00427ca9
int3