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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140015b1e
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x78], rax
jae 0x140015b1e
mov dword [rsp + 0x40], 0xffffffff
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x40], eax
jne 0x1400159e7
mov dword [rsp + 0x28], 1
jmp 0x1400159ef
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140015a6e
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x48], eax
jne 0x140015a50
mov dword [rsp + 0x2c], 1
jmp 0x140015a58
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140015b1e
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x50]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
dec rax
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov dword [rsp + 0x4c], 0xffffffff
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0xb8], eax
je 0x140015adf
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x34], eax
jmp 0x140015b08
mov dword [rsp + 0x50], 0xffffffff
cmp dword [rsp + 0x50], 0
jne 0x140015af8
mov dword [rsp + 0x30], 1
jmp 0x140015b00
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
jmp 0x140015c5e
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x80], 0
je 0x140015b69
mov dword [rsp + 0x58], 0xffffffff
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x58], eax
jne 0x140015b4f
mov dword [rsp + 0x38], 1
jmp 0x140015b57
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140015b7f
mov dword [rsp + 0x5c], 0xffffffff
mov eax, dword [rsp + 0x5c]
jmp 0x140015c5e
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
jne 0x140015bf1
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x90], rax
movzx eax, byte [rsp + 0xb8]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
mov rdx, qword [rsp + 0x90]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
cmp eax, 0xffffffff
je 0x140015bd5
mov dword [rsp + 0x3c], 1
jmp 0x140015bdd
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
test eax, eax
je 0x140015bf1
mov eax, dword [rsp + 0xb8]
jmp 0x140015c5e
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
add rax, 0x70
cmp qword [rsp + 0x98], rax
je 0x140015c52
movzx eax, byte [rsp + 0xb8]
mov byte [rsp + 0x24], al
mov rax, qword [rsp + 0xb0]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0x70], cl
mov rcx, qword [rsp + 0xb0]
call fcn.140017f20
mov eax, dword [rsp + 0xb8]
jmp 0x140015c5e
mov dword [rsp + 0x60], 0xffffffff
mov eax, dword [rsp + 0x60]
add rsp, 0xa8
ret