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

Disassembly:
mov word [rsp + 0x20], r9w
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov word [rsp + 8], cx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [0x180147250]
mov qword [rsp + 0xa8], rax
movzx eax, word [0x180147260]
movsx rax, ax
mov qword [rsp + 0x48], rax
movzx eax, byte [0x180147230]
mov byte [rsp + 0x22], al
mov eax, dword [0x1801472b0]
mov dword [rsp + 0x98], eax
mov qword [rsp + 0xb0], 0x9a6c
mov dword [rsp + 0x78], 0xdf
mov byte [rsp + 0x20], 0x2a
movsx eax, word [0x180147174]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], 0x476a
movzx eax, byte [0x180147177]
mov byte [rsp + 0x21], al
movzx eax, byte [0x180147290]
mov byte [rsp + 0x28], al
movsxd rax, dword [0x180147274]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x7c], 0x78
mov eax, 0x829f
mov word [rsp + 0x34], ax
movsx eax, word [0x180147224]
mov dword [rsp + 0x80], eax
mov eax, dword [0x1801472a4]
mov word [rsp + 0x68], ax
movzx eax, word [0x180147224]
mov word [rsp + 0x50], ax
movabs rax, 0xcf02799c58a43
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x84], 0x773e08db
mov qword [rsp + 0xc0], 0x9402
movzx eax, byte [0x180147177]
movsx rax, al
mov qword [rsp + 0xa0], rax
mov eax, dword [0x18014711c]
mov byte [rsp + 0x29], al
movzx eax, byte [0x180147176]
movzx eax, al
mov word [rsp + 0x24], ax
mov byte [rsp + 0x2a], 0x77
movzx eax, byte [0x180147224]
mov byte [rsp + 0x2b], al
mov qword [rsp + 0xc8], 0x7aa5d889
movzx eax, byte [0x180147230]
mov byte [rsp + 0x2c], al
mov eax, 0xf6c1
mov word [rsp + 0x5c], ax
movzx eax, word [0x180147174]
mov word [rsp + 0x54], ax
movzx eax, byte [0x18014729c]
mov byte [rsp + 0x2d], al
mov eax, dword [0x18014720c]
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0x40
movsx eax, word [0x180147224]
mov dword [rsp + 0x88], eax
mov eax, dword [0x180147228]
mov dword [rsp + 0x8c], eax
mov eax, dword [0x18014711c]
cdqe
mov qword [rsp + 0xd0], rax
movsx eax, word [0x180147248]
mov dword [rsp + 0x90], eax
movzx eax, word [0x18014725c]
mov dword [rsp + 0x94], eax
movzx eax, word [0x180147240]
mov word [rsp + 0x58], ax
mov byte [rsp + 0x30], 0x52
movzx eax, word [rsp + 0x24]
cwde
cmp eax, dword [rsp + 0x60]
je 0x1800d0be5
mov dword [rsp + 0x3c], 1
jmp 0x1800d0bed
mov dword [rsp + 0x3c], 0
movzx eax, word [rsp + 0x24]
cwde
cmp eax, 0x63
je 0x1800d0c02
mov dword [rsp + 0x38], 1
jmp 0x1800d0c0a
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x3c], eax
jge 0x1800d0c47
lea rax, [rsp + 0xd8]
lea rcx, str._common_getkeydata
mov rdi, rax
mov rsi, rcx
mov ecx, 0x26
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
mov qword [rsp + 0x48], rax
jmp 0x1800d0c6c
movzx eax, word [rsp + 0x34]
movzx eax, ax
test eax, eax
je 0x1800d0c6c
movzx eax, byte [rsp + 0x21]
movsx rax, al
mov rcx, qword [rsp + 0x48]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x20]
movsx ecx, word [0x180147174]
cmp eax, ecx
jne 0x1800d0c90
mov eax, dword [0x180147298]
add eax, 0xa1
cdqe
mov qword [rsp + 0x70], rax
jmp 0x1800d0d08
mov eax, dword [rsp + 0x64]
movzx ecx, byte [rsp + 0x22]
movsx ecx, cl
cmp eax, ecx
ja 0x1800d0caa
mov dword [rsp + 0x40], 1
jmp 0x1800d0cb2
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
not eax
cdqe
movzx ecx, byte [rsp + 0x20]
mov rdx, qword [0x180147280]
sub rcx, rdx
cmp rax, rcx
jne 0x1800d0d08
mov rax, qword [rsp + 0x70]
sub rax, 0x5e9f
mov word [0x1801472b8], ax
movzx eax, byte [0x180147172]
movzx eax, al
mov rcx, qword [rsp + 0x48]
add rax, rcx
movzx ecx, byte [0x180147172]
movzx ecx, cl
or rcx, rax
mov rax, rcx
mov byte [0x180147172], al
movzx eax, word [0x180147260]
cwde
mov ecx, dword [0x18014711c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x18014711c]
sub ecx, eax
mov eax, ecx
mov dword [0x18014711c], eax
movsx rax, word [0x180147174]
mov rcx, qword [0x180147280]
add rcx, rax
mov rax, rcx
mov qword [0x180147280], rax
mov rax, qword [rsp + 0xa0]
add rsp, 0x108
pop rdi
pop rsi
ret