Function at 0x180040af0
Capabilities:
Link many functions at runtime
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x12d0]
mov eax, 0x13d0
call fcn.1800b8ad0
sub rsp, rax
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rsp + 0x1420], rbx
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x12c0], rax
mov r15, rcx
cmp qword [rcx + 0x20], 0
ja 0x180040b4d
mov dword [rcx + 0x160], 3
xor al, al
jmp 0x180041f81
xor r12d, r12d
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], r12
mov word [rbp + 0x80], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x80]
call fcn.1800165a0
nop
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rcx, qword [rbp + 0x80]
lea rdx, [0x180100b80]
call fcn.1800b96c4
lea rcx, [rbp + 0x80]
test eax, eax
jne 0x180040bc8
lea r8d, [r12 + 3]
lea rdx, [0x180100b80]
jmp 0x180040bfe
cmp qword [rbp + 0x98], 8
cmovae rcx, qword [rbp + 0x80]
lea rdx, str.POST
call fcn.1800b96c4
test eax, eax
jne 0x180041f3f
lea r8d, [rax + 4]
lea rdx, str.POST
lea rcx, [rbp + 0x80]
call fcn.1800166f0
mov r14b, 1
mov dword [rsp + 0x50], r14d
cmp qword [r15], 0
jne 0x180040c41
lea rcx, [r15 + 0x188]
cmp qword [rcx + 0x18], 8
jb 0x180040c22
mov rcx, qword [rcx]
call fcn.18003fdc0
mov qword [r15], rax
test rax, rax
jne 0x180040c41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
jmp 0x180041f4a
mov eax, dword [r15 + 0x21c]
mov dword [rsp + 0x20], eax
mov r9d, dword [r15 + 0x218]
mov r8d, dword [r15 + 0x214]
mov edx, dword [r15 + 0x210]
mov rcx, qword [r15]
call fcn.18003ff10
mov word [rbp + 0x470], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x472]
call fcn.1800b6c70
mov word [rbp + 0x890], r12w
xor edx, edx
mov r8d, 0xa26
lea rcx, [rbp + 0x892]
call fcn.1800b6c70
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x10]
call fcn.1800b6c70
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x470]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], 0x104
lea rax, [rbp + 0x890]
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], 0x514
mov eax, 1
mov dword [rbp + 0x20], eax
mov rsi, qword [r15 + 0x20]
lea rdi, [r15 + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x180040cf5
mov rdi, qword [rdi]
lea rcx, [rbp + 0xc0]
call fcn.18003e9f0
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180040d0e
mov rbx, qword [rax]
call fcn.18003fd00
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp qword [rbp + 0xd8], 0x10
jb 0x180040d38
mov rcx, qword [rbp + 0xc0]
call fcn.1800b5700
mov qword [rbp + 0xd8], 0xf
mov qword [rbp + 0xd0], r12
mov byte [rbp + 0xc0], 0
test rbx, rbx
je 0x180041f4d
lea r9, [rbp + 0x10]
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call rbx
test eax, eax
je 0x180041f4d
cmp word [rbp + 0x470], 0
jne 0x180040d85
xor edi, edi
mov r8d, edi
or rbx, 0xffffffffffffffff
jmp 0x180040da0
lea rax, [rbp + 0x470]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180040d93
xor edi, edi
lea rcx, [r15 + 0x30]
lea rdx, [rbp + 0x470]
call fcn.1800166f0
movzx r8d, word [rbp + 0x34]
lea rdx, [rbp + 0x470]
mov rcx, qword [r15]
call fcn.18003ffd0
mov qword [rbp], rax
test rax, rax
je 0x180041f3a
mov ecx, edi
mov edx, 0x800000
cmp dword [rbp + 0x24], 2
cmove ecx, edx
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
mov dword [rsp + 0x30], ecx
mov r8, qword [rbp + 0x58]
mov rcx, rax
call fcn.180040090
mov r13, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x180041f31
cmp byte [r15 + 8], 0
jne 0x180040e42
cmp dword [rbp + 0x24], 2
jne 0x180040e42
mov dword [rsp + 0x48], 0x3100
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x1b]
mov rcx, rax
call fcn.180040150
xor r12b, r12b
mov byte [rsp + 0x44], r12b
mov ecx, edi
nop dword [rax]
mov eax, ecx
inc ecx
mov dword [rsp + 0x74], ecx
cmp eax, 3
jae 0x180041f12
mov rax, qword [r15 + 0x130]
test rax, rax
je 0x180040e9a
lea rdx, [r15 + 0x120]
cmp qword [rdx + 0x18], 8
jb 0x180040e7e
mov rdx, qword [rdx]
mov r8d, eax
mov rcx, r13
call fcn.180040200
test eax, eax
jne 0x180040e9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
cmp qword [r15 + 0x100], 0
jbe 0x180040f68
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], rdi
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0xf0], rdi
mov word [rbp + 0xe0], di
mov r8d, 8
lea rdx, str.Cookie:
lea rcx, [rbp + 0xe0]
call fcn.1800166f0
nop
lea rdx, [r15 + 0xf0]
mov r9, rbx
xor r8d, r8d
lea rcx, [rbp + 0xe0]
call fcn.1800162f0
lea rdx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rdx, qword [rbp + 0xe0]
mov r8d, dword [rbp + 0xf0]
mov rcx, r13
call fcn.180040200
test eax, eax
jne 0x180040f39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
cmp qword [rbp + 0xf8], 8
jb 0x180040f4f
mov rcx, qword [rbp + 0xe0]
call fcn.1800b5700
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0xf0], rdi
mov word [rbp + 0xe0], di
cmp qword [r15 + 0x150], 0
jbe 0x180041078
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 3
mov word [rbp + 0x260], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x262]
call fcn.1800b6c70
lea r8, [r15 + 0x140]
cmp qword [r8 + 0x18], 8
jb 0x180040fb7
mov r8, qword [r8]
mov edx, 0x104
lea rcx, [rbp + 0x260]
call fcn.1800b8c80
lea rax, [rbp + 0x260]
mov qword [rbp - 0x10], rax
mov r9d, 0x18
lea r8, [rbp - 0x18]
lea edx, [r9 + 0xe]
mov rcx, r13
call fcn.180040150
test eax, eax
jne 0x180040ffa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
mov rax, qword [r15 + 0x1c0]
test rax, rax
je 0x180041078
lea r8, [r15 + 0x1b0]
cmp qword [r8 + 0x18], 8
jb 0x180041017
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1002
mov rcx, r13
call fcn.180040150
test eax, eax
jne 0x180041039
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
mov rax, qword [r15 + 0x1e0]
test rax, rax
je 0x180041078
lea r8, [r15 + 0x1d0]
cmp qword [r8 + 0x18], 8
jb 0x180041056
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1003
mov rcx, r13
call fcn.180040150
test eax, eax
jne 0x180041078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
xor r14b, r14b
mov rcx, r13
call fcn.1800402c0
test eax, eax
jne 0x18004137f
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
lea rcx, [rbp + 0x220]
call fcn.18003f290
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1800410c2
mov rbx, qword [rax]
call fcn.18003fd00
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp qword [rbp + 0x238], 0x10
jb 0x1800410ec
mov rcx, qword [rbp + 0x220]
call fcn.1800b5700
mov qword [rbp + 0x238], 0xf
mov qword [rbp + 0x230], rdi
mov byte [rbp + 0x220], 0
test rbx, rbx
je 0x180041374
lea rcx, [rbp + 0xc0]
call rbx
test eax, eax
je 0x180041374
mov rax, qword [rbp + 0xc8]
test rax, rax
je 0x180041263
xor ecx, ecx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x68], 3
mov ecx, 1
mov dword [rbp - 0x64], ecx
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x4c], ecx
mov dword [rbp - 0x50], edi
mov qword [rbp - 0x58], rdi
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
cmp qword [r15 + 0x28], 8
jb 0x180041179
mov rdi, qword [r15 + 0x10]
jmp 0x18004117d
lea rdi, [r15 + 0x10]
mov rsi, qword [r15]
lea rcx, [rbp + 0x1c0]
call fcn.18003f420
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180041199
mov rbx, qword [rax]
call fcn.18003fd00
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp qword [rbp + 0x1d8], 0x10
jb 0x1800411c3
mov rcx, qword [rbp + 0x1c0]
call fcn.1800b5700
mov qword [rbp + 0x1d8], 0xf
mov qword [rbp + 0x1d0], 0
mov byte [rbp + 0x1c0], 0
test rbx, rbx
je 0x180041251
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x68]
mov rdx, rdi
mov rcx, rsi
call rbx
test eax, eax
je 0x180041251
mov r9d, 0x18
lea r8, [rbp - 0x30]
lea edx, [r9 + 0xe]
mov rcx, r13
call fcn.180040150
test eax, eax
je 0x18004122a
mov rcx, r13
call fcn.1800402c0
movzx r14d, r14b
test eax, eax
mov eax, 1
cmovne r14d, eax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180041239
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x180041331
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x180041331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
jmp 0x180041331
mov rbx, qword [rbp + 0xd0]
test rbx, rbx
je 0x180041357
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x48], 3
mov word [rbp + 0x260], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x262]
call fcn.1800b6c70
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp + 0x260]
call fcn.1800b8c80
lea rax, [rbp + 0x260]
mov qword [rbp - 0x40], rax
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x180041308
mov word [rbp + 0x680], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x682]
call fcn.1800b6c70
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp + 0x680]
call fcn.1800b8c80
lea rax, [rbp + 0x680]
mov qword [rbp - 0x38], rax
mov r9d, 0x18
lea r8, [rbp - 0x48]
lea edx, [r9 + 0xe]
mov rcx, r13
call fcn.180040150
test eax, eax
jne 0x180041333
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
jmp 0x180041333
xor edi, edi
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x180041345
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x180041357
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x180041369
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r14b, r14b
je 0x180041efb
jmp 0x18004137f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180041ef4
mov rdi, qword [r15 + 0x110]
test rdi, rdi
je 0x180041420
xor r14d, r14d
mov dword [rsp + 0x48], r14d
mov esi, dword [r15 + 0x118]
lea rcx, [rbp + 0x240]
call fcn.18003f5a0
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1800413b7
mov rbx, qword [rax]
call fcn.18003fd00
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp qword [rbp + 0x258], 0x10
jb 0x1800413e1
mov rcx, qword [rbp + 0x240]
call fcn.1800b5700
mov qword [rbp + 0x258], 0xf
mov qword [rbp + 0x250], r14
mov byte [rbp + 0x240], 0
test rbx, rbx
je 0x180041413
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, rdi
mov rcx, r13
call rbx
test eax, eax
jne 0x180041420
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
mov rcx, r13
call fcn.180040380
test eax, eax
je 0x180041eec
xor edi, edi
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea edx, [rdi + 0x16]
mov rcx, r13
call fcn.180040430
test eax, eax
jne 0x180041461
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800419d1
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1800b1b34
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800419d1
mov r8d, dword [rsp + 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1800b6c70
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea edx, [r14 + 0x17]
mov rcx, r13
call fcn.180040430
test eax, eax
je 0x1800419c9
cmp word [rsi], di
jne 0x1800414ce
mov r8, rdi
jmp 0x1800414db
mov r8, r14
inc r8
cmp word [rsi + r8*2], di
jne 0x1800414d1
mov rdx, rsi
lea rcx, [r15 + 0x50]
call fcn.1800166f0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], rdi
mov word [rbp + 0xa0], di
xor r8d, r8d
lea rdx, [0x180100a4c]
lea rcx, [rbp + 0xa0]
call fcn.1800166f0
nop
cmp byte [r15 + 0x1a8], 0
jne 0x1800415eb
lea rcx, [rbp + 0x1a0]
call fcn.18003dde0
nop
lea rcx, [rbp + 0xa0]
cmp rcx, rax
je 0x180041571
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.1800165a0
nop
cmp qword [rbp + 0x1b8], 8
jb 0x180041587
mov rcx, qword [rbp + 0x1a0]
call fcn.1800b5700
mov qword [rbp + 0x1b8], 7
mov qword [rbp + 0x1b0], rdi
mov word [rbp + 0x1a0], di
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x50]
lea rcx, [rbp + 0xa0]
call fcn.18003d3c0
test al, al
je 0x1800415eb
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x1800415eb
lea rcx, [r15 + 0x90]
cmp rcx, rdx
je 0x1800415eb
mov r9, r14
xor r8d, r8d
call fcn.1800165a0
lea rcx, [rbp + 0x200]
call fcn.18003df80
nop
lea rcx, [rbp + 0xa0]
cmp rcx, rax
je 0x18004161a
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.1800165a0
nop
cmp qword [rbp + 0x218], 8
jb 0x180041630
mov rcx, qword [rbp + 0x200]
call fcn.1800b5700
mov qword [rbp + 0x218], 7
mov qword [rbp + 0x210], rdi
mov word [rbp + 0x200], di
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x50]
lea rcx, [rbp + 0xa0]
call fcn.18003d3c0
test al, al
je 0x180041693
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x180041693
cmp qword [rcx + 0x18], 8
jb 0x180041687
mov rcx, qword [rcx]
call fcn.1800b72b8
mov dword [r15 + 0xc8], eax
lea rcx, [rbp + 0x1e0]
call fcn.18003e120
nop
lea rcx, [rbp + 0xa0]
cmp rcx, rax
je 0x1800416c2
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.1800165a0
nop
cmp qword [rbp + 0x1f8], 8
jb 0x1800416d8
mov rcx, qword [rbp + 0x1e0]
call fcn.1800b5700
mov qword [rbp + 0x1f8], 7
mov qword [rbp + 0x1f0], rdi
mov word [rbp + 0x1e0], di
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x50]
lea rcx, [rbp + 0xa0]
call fcn.18003d3c0
test al, al
je 0x18004173c
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x18004173c
lea rcx, [r15 + 0x1f0]
cmp rcx, rdx
je 0x18004173c
mov r9, r14
xor r8d, r8d
call fcn.1800165a0
lea rcx, [rbp + 0x140]
call fcn.18003e2a0
nop
lea rcx, [rbp + 0xa0]
cmp rcx, rax
je 0x18004176b
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.1800165a0
nop
cmp qword [rbp + 0x158], 8
jb 0x180041781
mov rcx, qword [rbp + 0x140]
call fcn.1800b5700
mov qword [rbp + 0x158], 7
mov qword [rbp + 0x150], rdi
mov word [rbp + 0x140], di
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x50]
lea rcx, [rbp + 0xa0]
call fcn.18003d3c0
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
xor r14d, r14d
test al, al
je 0x180041947
mov rsi, r13
sub rsi, rdi
sar rsi, 5
test rsi, rsi
je 0x180041942
mov ebx, r14d
lea r12, [rsi - 1]
or r13, 0xffffffffffffffff
nop word [rax + rax]
mov r9, r13
xor r8d, r8d
mov rdx, rdi
lea rcx, [r15 + 0xd0]
call fcn.1800162f0
cmp rbx, r12
je 0x180041823
mov r8d, 2
lea rdx, [0x18010166c]
lea rcx, [r15 + 0xd0]
call fcn.180016430
inc rbx
add rdi, 0x20
cmp rbx, rsi
jb 0x1800417f0
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
movzx r12d, byte [rsp + 0x44]
mov qword [rbp + 0x130], r14
mov qword [rbp + 0x138], r14
mov qword [rbp + 0x138], 7
mov qword [rbp + 0x130], r14
mov word [rbp + 0x120], r14w
mov esi, 1
mov r8d, esi
lea rdx, [0x180100aa0]
lea rcx, [rbp + 0x120]
call fcn.1800166f0
nop
lea rbx, [r15 + 0xd0]
lea r8, [rbp + 0x120]
mov rdx, rbx
lea rcx, [rbp + 0x160]
call fcn.18003d840
nop
mov rdx, rax
mov rcx, rbx
call fcn.1800137e0
nop
cmp qword [rbp + 0x178], 8
jb 0x1800418c3
mov rcx, qword [rbp + 0x160]
call fcn.1800b5700
mov qword [rbp + 0x178], 7
mov qword [rbp + 0x170], r14
mov word [rbp + 0x160], r14w
cmp qword [rbp + 0x138], 8
jb 0x1800418f3
mov rcx, qword [rbp + 0x120]
call fcn.1800b5700
mov qword [rbp + 0x138], 7
mov qword [rbp + 0x130], r14
mov word [rbp + 0x120], r14w
mov rcx, qword [r15 + 0xe0]
test rcx, rcx
je 0x180041942
cmp qword [rbx + 0x18], 8
jb 0x180041925
mov rax, qword [rbx]
jmp 0x180041928
mov rax, rbx
cmp word [rax + rcx*2 - 2], 0x3b
je 0x180041942
mov r8, rsi
lea rdx, [0x180101674]
mov rcx, rbx
call fcn.180016430
mov rsi, qword [rsp + 0x48]
cmp qword [rbp + 0xb8], 8
jb 0x18004195d
mov rcx, qword [rbp + 0xa0]
call fcn.1800b5700
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], r14
mov word [rbp + 0xa0], r14w
test rdi, rdi
je 0x1800419c5
mov rbx, rdi
cmp rdi, r13
je 0x1800419ac
cmp qword [rbx + 0x18], 8
jb 0x180041993
mov rcx, qword [rbx]
call fcn.1800b5700
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
add rbx, 0x20
cmp rbx, r13
jne 0x180041984
mov rcx, rdi
call fcn.1800b5700
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r13, qword [rbp - 0x70]
mov rcx, rsi
call fcn.1800b72ec
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea edx, [r9 + 0x13]
mov rcx, r13
call fcn.180040430
test eax, eax
jne 0x180041a01
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180041a86
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.1800b1b34
mov rbx, rax
test rax, rax
je 0x180041a86
mov r8d, dword [rsp + 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1800b6c70
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea edx, [rsi + 0x14]
mov rcx, r13
call fcn.180040430
test eax, eax
je 0x180041a7e
cmp word [rbx], 0
jne 0x180041a61
mov r8, rdi
jmp 0x180041a6f
mov r8, rsi
inc r8
cmp word [rbx + r8*2], 0
jne 0x180041a64
lea rcx, [r15 + 0x168]
mov rdx, rbx
call fcn.1800166f0
mov rcx, rbx
call fcn.1800b72ec
mov r14d, 0x2800
mov esi, edi
mov rcx, qword [r15 + 0xb0]
test rcx, rcx
je 0x180041aa6
call fcn.1800b72ec
mov qword [r15 + 0xb0], rdi
mov rcx, r14
call fcn.1800b1b34
mov qword [r15 + 0xb0], rax
test rax, rax
je 0x180041f0d
xor edx, edx
mov r8, r14
mov rcx, rax
call fcn.1800b6c70
nop dword [rax + rax]
mov dword [rsp + 0x40], edi
lea rcx, [rbp + 0x180]
call fcn.18003fa00
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180041aed
mov rbx, qword [rax]
call fcn.18003fd00
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp qword [rbp + 0x198], 0x10
jb 0x180041b17
mov rcx, qword [rbp + 0x180]
call fcn.1800b5700
mov qword [rbp + 0x198], 0xf
mov qword [rbp + 0x190], rdi
mov byte [rbp + 0x180], 0
test rbx, rbx
je 0x180041c65
lea rdx, [rsp + 0x40]
mov rcx, r13
call rbx
test eax, eax
je 0x180041c65
mov edx, esi
mov rcx, r15
call fcn.180042010
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.1800b1b34
mov rbx, rax
test rax, rax
je 0x180041c72
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1800b6c70
mov dword [rsp + 0x48], edi
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, r13
call fcn.1800404f0
test eax, eax
je 0x180041c5b
mov ecx, dword [rsp + 0x48]
lea eax, [rcx + rsi]
cmp eax, r14d
jbe 0x180041bfa
mov rdi, qword [r15 + 0xb0]
add r14d, r14d
mov ecx, r14d
call fcn.1800b1b34
mov qword [r15 + 0xb0], rax
test rax, rax
je 0x180041c7e
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1800b6c70
mov r8d, esi
mov rdx, rdi
mov rcx, qword [r15 + 0xb0]
call fcn.1800b59d0
mov rcx, rdi
call fcn.1800b72ec
mov ecx, dword [rsp + 0x48]
xor edi, edi
mov r8d, ecx
mov ecx, esi
add rcx, qword [r15 + 0xb0]
mov rdx, rbx
call fcn.1800b59d0
add esi, dword [rsp + 0x48]
cmp byte [r15 + 0x220], 0
je 0x180041c5b
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0x228]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x48]
mov rdx, rbx
mov rcx, qword [r15 + 0x228]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180041c85
mov rcx, rbx
call fcn.1800b72ec
jmp 0x180041c72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x160], eax
cmp dword [rsp + 0x40], 0
jbe 0x180041c8a
jmp 0x180041ad0
mov qword [r15 + 0xb0], rdi
mov byte [rsp + 0x50], 0
mov edx, esi
mov rcx, r15
call fcn.180042010
mov dword [r15 + 0xb8], esi
xor ebx, ebx
mov esi, ebx
mov r12d, 1
mov r14d, r12d
lea rcx, [r15 + 0x90]
cmp qword [rcx + 0x18], 8
jb 0x180041cb9
mov rcx, qword [rcx]
mov r8d, 5
lea rdx, [0x180101678]
call fcn.1800b8cec
test eax, eax
jne 0x180041cd7
mov esi, 0xfde9
mov r14d, ebx
mov r9d, dword [r15 + 0xb8]
inc r9d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r8, qword [r15 + 0xb0]
mov edx, r14d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
jg 0x180041d32
mov esi, ebx
mov r14d, r12d
mov r9d, dword [r15 + 0xb8]
inc r9d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r8, qword [r15 + 0xb0]
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
jle 0x180041da3
movsxd r12, edi
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800b1b34
mov rbx, rax
test rax, rax
je 0x180041da3
lea r8, [r12 + r12]
xor edx, edx
mov rcx, rax
call fcn.1800b6c70
mov r9d, dword [r15 + 0xb8]
inc r9d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r8, qword [r15 + 0xb0]
mov edx, r14d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x180041d9b
lea rcx, [r15 + 0x70]
mov rdx, rbx
call fcn.180013860
mov rcx, rbx
call fcn.1800b72ec
mov r12b, 1
mov byte [rsp + 0x44], r12b
mov qword [rsp + 0x20], 3
lea r9, [0x180100b80]
mov r8, qword [rbp + 0x90]
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.180016fe0
test eax, eax
jne 0x180041f24
xor edi, edi
mov qword [rbp + 0x110], rdi
mov qword [rbp + 0x118], rdi
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], rdi
mov word [rbp + 0x100], di
lea r8d, [rax + 8]
lea rdx, str._html_
lea rcx, [rbp + 0x100]
call fcn.1800166f0
nop
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x70]
lea rcx, [rbp + 0x100]
call fcn.18003d3c0
test al, al
je 0x180041eb0
mov rax, qword [rbp - 0x80]
sub rax, qword [rsp + 0x78]
sar rax, 5
test rax, rax
je 0x180041eb0
lea r8d, [rdi + 9]
lea rdx, str.__html_
lea rcx, [rbp + 0x100]
call fcn.1800166f0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x70]
lea rcx, [rbp + 0x100]
call fcn.18003d3c0
test al, al
je 0x180041e9d
mov rax, qword [rbp - 0x80]
sub rax, qword [rsp + 0x78]
sar rax, 5
test rax, rax
jne 0x180041eb0
mov dword [r15 + 0x160], 0xd
xor r12b, r12b
mov byte [rsp + 0x44], r12b
lea rcx, [rsp + 0x78]
call fcn.180017ac0
nop
cmp qword [rbp + 0x118], 8
jb 0x180041ed1
mov rcx, qword [rbp + 0x100]
call fcn.1800b5700
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], rdi
mov word [rbp + 0x100], di
jmp 0x180041efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [r15 + 0x160], eax
test r12b, r12b
jne 0x180041f24
mov ecx, dword [rsp + 0x74]
or rbx, 0xffffffffffffffff
jmp 0x180040e50
xor r14b, r14b
jmp 0x180041f17
mov r14d, dword [rsp + 0x50]
movzx r14d, r14b
test r12b, r12b
cmove r14d, edi
jmp 0x180041f29
mov r14d, dword [rsp + 0x50]
mov rcx, r13
call fcn.18003fe70
mov rcx, qword [rbp]
call fcn.18003fe70
xor r12d, r12d
jmp 0x180041f4d
mov dword [r15 + 0x160], 0x57
xor r14b, r14b
cmp qword [rbp + 0x98], 8
jb 0x180041f63
mov rcx, qword [rbp + 0x80]
call fcn.1800b5700
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], r12
mov word [rbp + 0x80], r12w
movzx eax, r14b
mov rcx, qword [rbp + 0x12c0]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x1420]
add rsp, 0x13d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret