Function at 0x410840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov eax, 0x80
imul rax, rax, 3
lea rcx, [0x0041c2a8]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jge 0x4108de
mov eax, 0x80
imul rax, rax, 1
lea rcx, [0x0041c2a8]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jne 0x4108ab
cmp dword [0x0041c284], 0
jne 0x4108a9
mov rcx, qword [rsp + 0x80]
call fcn.0040bb30
jmp 0x410c39
jmp 0x4108dc
lea rax, [0x0041c2a8]
cmp qword [rsp + 0x88], rax
jne 0x4108d0
mov rcx, qword [rsp + 0x80]
call fcn.0040bba0
jmp 0x410c39
lea rcx, str.fwritei:_cant_open_this_file
call fcn.004082cc
jmp 0x4108fd
mov rax, qword [rsp + 0x88]
movsx eax, word [rax + 0x20]
and eax, 0xffffffc9
test eax, eax
je 0x4108fd
lea rcx, str.fwritei:_write_to_an_input_file
call fcn.004082cc
mov rax, qword [rsp + 0x88]
movsx eax, word [rax + 0x20]
and eax, 0x30
test eax, eax
je 0x410b50
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 8], rcx
jae 0x410985
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rcx], al
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
movzx eax, byte [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
inc rax
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 8], rax
jmp 0x4109aa
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x20]
mov rdx, qword [rsp + 0x88]
mov ecx, eax
call fcn.00412140
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 8], rcx
jae 0x410a10
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rcx], al
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
movzx eax, byte [rax]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
inc rax
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 8], rax
jmp 0x410a35
mov eax, 1
imul rax, rax, 1
movsx eax, byte [rsp + rax + 0x20]
mov rdx, qword [rsp + 0x88]
mov ecx, eax
call fcn.00412140
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 8], rcx
jae 0x410a9b
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rcx], al
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
movzx eax, byte [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
inc rax
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 8], rax
jmp 0x410ac0
mov eax, 1
imul rax, rax, 2
movsx eax, byte [rsp + rax + 0x20]
mov rdx, qword [rsp + 0x88]
mov ecx, eax
call fcn.00412140
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 8], rcx
jae 0x410b26
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rcx], al
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
movzx eax, byte [rax]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
inc rax
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 8], rax
jmp 0x410b4b
mov eax, 1
imul rax, rax, 3
movsx eax, byte [rsp + rax + 0x20]
mov rdx, qword [rsp + 0x88]
mov ecx, eax
call fcn.00412140
mov dword [rsp + 0x3c], 0
jmp 0x410c39
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.004018a4
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x18]
cmp qword [rax + 8], rcx
jae 0x410bf2
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
movzx eax, byte [rax]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
inc rax
mov rcx, qword [rsp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x410c24
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x40]
call fcn.00412140
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x410b85
add rsp, 0x78
ret