Function at 0x18003d5e0
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1210]
mov eax, 0x1310
call fcn.1800cd460
sub rsp, rax
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1360], rbx
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x1200], rax
mov rbx, rcx
mov qword [rbp + 0x30], rcx
cmp qword [rcx + 0x20], 0
ja 0x18003d63f
mov dword [rcx + 0x1a8], 3
jmp 0x18003e686
lea rcx, [rbp + 0xb0]
call fcn.180012600
nop
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
lea rdx, [0x18014aa30]
call fcn.1800c0fd4
lea rcx, [rbp + 0xb0]
test eax, eax
jne 0x18003d687
lea r8d, [rax + 3]
lea rdx, [0x18014aa30]
jmp 0x18003d6bd
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
lea rdx, [0x180153678]
call fcn.1800c0fd4
test eax, eax
jne 0x18003e670
lea r8d, [rax + 4]
lea rdx, [0x180153678]
lea rcx, [rbp + 0xb0]
call fcn.180018ad0
mov sil, 1
mov dword [rsp + 0x4c], esi
xor r13d, r13d
cmp qword [rbx], r13
jne 0x18003d70e
lea rcx, [rbx + 0x1d8]
cmp qword [rcx + 0x18], 8
jb 0x18003d6e2
mov rcx, qword [rcx]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
test rax, rax
jne 0x18003d70e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
jmp 0x18003e67a
mov eax, dword [rbx + 0x28c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x288]
mov r8d, dword [rbx + 0x284]
mov edx, dword [rbx + 0x280]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov word [rbp + 0x3b0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3b2]
call fcn.1800c7520
mov word [rbp + 0x7d0], r13w
xor edx, edx
mov r8d, 0xa26
lea rcx, [rbp + 0x7d2]
call fcn.1800c7520
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x40]
call fcn.1800c7520
mov dword [rbp + 0x40], 0x68
lea rax, [rbp + 0x3b0]
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x60], 0x104
lea rax, [rbp + 0x7d0]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x90], 0x514
mov eax, 1
mov dword [rbp + 0x50], eax
lea r12, [rbx + 0x10]
cmp qword [r12 + 0x18], 8
jb 0x18003d7c7
mov rcx, qword [r12]
jmp 0x18003d7ca
mov rcx, r12
lea r9, [rbp + 0x40]
xor r8d, r8d
mov edx, dword [rbx + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x18003e65e
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
lea rdi, [rbp + 0x3b0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x38]
lea rdx, [rbp + 0x3b0]
call fcn.180018ad0
xor r9d, r9d
movzx r8d, word [rbp + 0x64]
lea rdx, [rbp + 0x3b0]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 8], rax
test rax, rax
je 0x18003e65e
xor edi, edi
mov ecx, edi
mov edx, 0x800000
cmp dword [rbp + 0x54], 2
cmove ecx, edx
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rdx, qword [rbp + 0xb0]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rbp + 0x88]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18003e653
cmp byte [rbx + 8], dil
jne 0x18003d8b3
cmp dword [rbp + 0x54], 2
jne 0x18003d8b3
mov dword [rsp + 0x48], 0x3100
lea r9d, [r13 + 5]
lea r8, [rsp + 0x48]
lea edx, [rdi + 0x1f]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor r14b, r14b
mov byte [rsp + 0x44], r14b
mov ecx, edi
nop dword [rax]
mov eax, ecx
inc ecx
mov dword [rsp + 0x50], ecx
cmp eax, 3
jae 0x18003e636
mov rax, qword [rbx + 0x168]
test rax, rax
je 0x18003d910
lea rdx, [rbx + 0x158]
cmp qword [rdx + 0x18], 8
jb 0x18003d8ee
mov rdx, qword [rdx]
mov r9d, 0x1000000
mov r8d, eax
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18003d910
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
cmp qword [rbx + 0x130], 0
jbe 0x18003d990
lea rdx, str.Cookie:
lea rcx, [rbp + 0x100]
call fcn.180012650
nop
lea rdx, [rbx + 0x120]
mov r9, r13
xor r8d, r8d
lea rcx, [rbp + 0x100]
call fcn.180015300
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rdx, qword [rbp + 0x100]
mov r9d, 0x1000000
mov r8d, dword [rbp + 0x110]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18003d984
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
lea rcx, [rbp + 0x100]
call fcn.1800126d0
cmp qword [rbx + 0x190], 0
jbe 0x18003daa0
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x10], 3
mov word [rbp + 0x1a0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.1800c7520
lea r8, [rbx + 0x180]
cmp qword [r8 + 0x18], 8
jb 0x18003d9df
mov r8, qword [r8]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.1800c0e64
lea rdx, [rbp + 0x1a0]
mov qword [rbp - 8], rdx
mov r9d, DispGetParam
lea r8, [rbp - 0x10]
lea edx, [r9 + 0xe]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18003da22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
mov rax, qword [rbx + 0x218]
test rax, rax
je 0x18003daa0
lea r8, [rbx + 0x208]
cmp qword [r8 + 0x18], 8
jb 0x18003da3f
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1002
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18003da61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
mov rax, qword [rbx + 0x240]
test rax, rax
je 0x18003daa0
lea r8, [rbx + 0x230]
cmp qword [r8 + 0x18], 8
jb 0x18003da7e
mov r8, qword [r8]
lea r9d, [rax + rax]
mov edx, 0x1003
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18003daa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
xor sil, sil
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x18003dce3
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x18003e611
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x18003dbdc
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x80], 3
mov ecx, 1
mov dword [rbp - 0x7c], ecx
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x64], ecx
mov dword [rbp - 0x68], edi
mov qword [rbp - 0x70], rdi
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
cmp qword [r12 + 0x18], 8
jb 0x18003db45
mov rdx, qword [r12]
jmp 0x18003db48
mov rdx, r12
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x80]
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x18003dbcb
mov r9d, DispGetParam
lea r8, [rbp - 0x40]
lea edx, [r9 + 0xe]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x18003dba4
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
movzx esi, sil
test eax, eax
mov eax, 1
cmovne esi, eax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x18003dbb3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18003dcab
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x18003dcab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
jmp 0x18003dcab
mov rdi, qword [rbp - 0x50]
test rdi, rdi
je 0x18003dcc9
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x28], 3
xor r13d, r13d
mov word [rbp + 0x1a0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.1800c7520
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.1800c0e64
lea rdx, [rbp + 0x1a0]
mov qword [rbp - 0x20], rdx
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x18003dc80
mov word [rbp + 0x5c0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x5c2]
call fcn.1800c7520
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call fcn.1800c0e64
lea rdx, [rbp + 0x5c0]
mov qword [rbp - 0x18], rdx
mov r9d, DispGetParam
lea r8, [rbp - 0x28]
lea edx, [r9 + 0xe]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18003dca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
or r13, 0xffffffffffffffff
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x18003dcba
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18003dcc9
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18003dcd8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test sil, sil
je 0x18003e61d
xor edi, edi
mov rdx, qword [rbx + 0x148]
test rdx, rdx
je 0x18003dd18
mov dword [rsp + 0x48], edi
lea r9, [rsp + 0x48]
mov r8d, dword [rbx + 0x150]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x18003dd18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x18003e611
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18003dd64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18003e0eb
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1800bd9f0
mov r15, rax
test rax, rax
je 0x18003e0e6
mov r8d, dword [rsp + 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1800c7520
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, r15
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x18003e0de
xor eax, eax
mov rcx, r13
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea rsi, [rbx + 0x60]
lea r8, [rcx - 1]
mov rdx, r15
mov rcx, rsi
call fcn.180018ad0
lea rcx, [rsp + 0x60]
call fcn.180013820
nop
lea rdx, [0x1801493e0]
lea rcx, [rbp + 0xd8]
call fcn.180012650
nop
cmp byte [rbx + 0x200], 0
jne 0x18003de84
mov r8d, DispGetParam
lea rdx, str.charset_A_Za_z0_9___
lea rcx, [rbp + 0xd8]
call fcn.180018ad0
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp + 0xd8]
call fcn.18003cd90
movabs r12, 0x6666666666666667
test al, al
je 0x18003de8e
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
sub rcx, rdi
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18003de8e
lea rcx, [rbx + 0xb0]
mov r9, r13
xor r8d, r8d
mov rdx, rdi
call fcn.180015590
jmp 0x18003de8e
movabs r12, 0x6666666666666667
mov r8d, DispGetParam
lea rdx, str.Content_Length:__0_9_
lea rcx, [rbp + 0xd8]
call fcn.180018ad0
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp + 0xd8]
call fcn.18003cd90
test al, al
je 0x18003defa
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
sub rcx, rdi
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18003defa
cmp qword [rdi + 0x18], 8
jb 0x18003deec
mov rdi, qword [rdi]
mov rcx, rdi
call fcn.1800bf4d4
mov dword [rbx + 0xf0], eax
mov r8d, SafeArrayGetLBound
lea rdx, str.Location:__0_9_
lea rcx, [rbp + 0xd8]
call fcn.180018ad0
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp + 0xd8]
call fcn.18003cd90
test al, al
je 0x18003df63
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
sub rcx, rdi
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18003df63
lea rcx, [rbx + 0x258]
mov r9, r13
xor r8d, r8d
mov rdx, rdi
call fcn.180015590
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnlock
lea rdx, str.Set_Cookie:_b.__n
lea rcx, [rbp + 0xd8]
call fcn.180018ad0
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp + 0xd8]
call fcn.18003cd90
test al, al
je 0x18003e0c5
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
sub rcx, rsi
mov rax, r12
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
je 0x18003e0c5
xor r13d, r13d
mov edi, r13d
test r12, r12
je 0x18003e021
lea r14, [r12 - 1]
lea r13, [rbx + 0xf8]
or rbx, 0xffffffffffffffff
nop dword [rax]
mov r9, rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call fcn.180015300
cmp rdi, r14
je 0x18003e00b
mov r8d, 2
lea rdx, [0x180153764]
mov rcx, r13
call fcn.180015430
inc rdi
add rsi, 0x28
cmp rdi, r12
jb 0x18003dfe0
mov rbx, qword [rbp + 0x30]
movzx r14d, byte [rsp + 0x44]
lea rdx, [0x180149dec]
lea rcx, [rbp + 0x150]
call fcn.180012650
nop
lea r8, [rbp + 0x150]
lea rdx, [rbx + 0xf8]
lea rcx, [rbp + 0x178]
call fcn.18003d140
nop
mov rdx, rax
lea rcx, [rbx + 0xf8]
call fcn.180015260
nop
lea rcx, [rbp + 0x178]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x150]
call fcn.1800126d0
mov r11, qword [rbx + 0x108]
test r11, r11
je 0x18003e0c1
cmp qword [rbx + 0x110], 8
jb 0x18003e098
mov rax, qword [rbx + 0xf8]
jmp 0x18003e09f
lea rax, [rbx + 0xf8]
cmp word [rax + r11*2 - 2], 0x3b
je 0x18003e0c1
mov r8d, 1
lea rdx, [0x18015376c]
lea rcx, [rbx + 0xf8]
call fcn.180015430
or r13, 0xffffffffffffffff
lea rcx, [rbp + 0xd8]
call fcn.1800126d0
nop
lea rcx, [rsp + 0x60]
call fcn.180013840
xor edi, edi
mov rcx, r15
call fcn.1800bf278
mov r15, qword [rsp + 0x58]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x13]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18003e124
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18003e1a7
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1800bd9f0
mov rsi, rax
test rax, rax
je 0x18003e1a7
mov r8d, dword [rsp + 0x40]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1800c7520
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rsi
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x18003e19f
xor eax, eax
mov rcx, r13
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x1b0]
mov rdx, rsi
call fcn.180018ad0
xor edi, edi
mov rcx, rsi
call fcn.1800bf278
mov r13d, 0x2800
mov r12d, edi
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x18003e1c8
call fcn.1800bf278
mov qword [rbx + 0xd8], rdi
mov rcx, r13
call fcn.1800bd9f0
mov qword [rbx + 0xd8], rax
test rax, rax
je 0x18003e631
xor edx, edx
mov r8, r13
mov rcx, rax
call fcn.1800c7520
nop dword [rax]
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18003e32a
mov edx, r12d
mov rcx, rbx
call fcn.18003e700
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.1800bd9f0
mov rdi, rax
test rax, rax
je 0x18003e338
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1800c7520
xor esi, esi
mov dword [rsp + 0x48], esi
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18003e320
mov ecx, dword [rsp + 0x48]
lea eax, [rcx + r12]
cmp eax, r13d
jbe 0x18003e2be
mov rsi, qword [rbx + 0xd8]
add r13d, r13d
mov ecx, r13d
call fcn.1800bd9f0
mov qword [rbx + 0xd8], rax
test rax, rax
je 0x18003e346
mov r8d, r13d
xor edx, edx
mov rcx, rax
call fcn.1800c7520
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [rbx + 0xd8]
call fcn.1800bed30
mov rcx, rsi
call fcn.1800bf278
mov ecx, dword [rsp + 0x48]
xor esi, esi
mov r8d, ecx
mov ecx, r12d
add rcx, qword [rbx + 0xd8]
mov rdx, rdi
call fcn.1800bed30
add r12d, dword [rsp + 0x48]
cmp byte [rbx + 0x290], 0
je 0x18003e320
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x298]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x54], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [rbx + 0x298]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18003e354
mov rcx, rdi
call fcn.1800bf278
jmp 0x18003e338
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
jmp 0x18003e33a
xor edi, edi
cmp dword [rsp + 0x40], 0
jbe 0x18003e35b
jmp 0x18003e1f0
mov qword [rbx + 0xd8], rsi
mov byte [rsp + 0x4c], 0
jmp 0x18003e35b
mov byte [rsp + 0x4c], 0
jmp 0x18003e35d
xor esi, esi
mov edx, r12d
mov rcx, rbx
call fcn.18003e700
mov dword [rbx + 0xe0], r12d
mov r12d, esi
mov r14d, 1
mov r13d, r14d
lea rcx, [rbx + 0xb0]
cmp qword [rcx + 0x18], 8
jb 0x18003e38c
mov rcx, qword [rcx]
mov r8d, 5
lea rdx, [0x180153770]
call fcn.1800c1e54
test eax, eax
jne 0x18003e3ab
mov r12d, 0xfde9
mov r13d, esi
mov r9d, dword [rbx + 0xe0]
inc r9d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r8, qword [rbx + 0xd8]
mov edx, r13d
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
jg 0x18003e40c
mov r12d, esi
mov r13d, r14d
mov r9d, dword [rbx + 0xe0]
inc r9d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r8, qword [rbx + 0xd8]
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
jle 0x18003e496
movsxd r14, edi
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd9f0
mov rsi, rax
test rax, rax
je 0x18003e494
lea r8, [r14 + r14]
xor edx, edx
mov rcx, rax
call fcn.1800c7520
mov r9d, dword [rbx + 0xe0]
inc r9d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov r8, qword [rbx + 0xd8]
mov edx, r13d
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x18003e48c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x88]
mov rdx, rsi
call fcn.180018ad0
mov rcx, rsi
call fcn.1800bf278
xor esi, esi
mov r14b, 1
mov byte [rsp + 0x44], r14b
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
mov edi, 3
mov r8, qword [rbp + 0xc0]
cmp r8, rdi
cmovb rdi, r8
lea rdx, [0x18014aa30]
test rdi, rdi
je 0x18003e4ff
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x18003e4eb
add rcx, 2
add rdx, 2
dec rdi
jne 0x18003e4d4
jmp 0x18003e4ff
mov edi, 1
cmp word [rcx], ax
mov rcx, 0xffffffffffffffff
cmovb edi, ecx
jmp 0x18003e505
mov edi, esi
or rcx, 0xffffffffffffffff
movsxd rax, edi
test edi, edi
jne 0x18003e51f
cmp r8, 3
jae 0x18003e516
mov eax, ecx
jmp 0x18003e51f
mov eax, esi
cmp r8, 3
setne al
test eax, eax
sete al
test al, al
je 0x18003e646
lea rdx, str._html_
lea rcx, [rbp + 0x128]
call fcn.180012650
nop
lea rcx, [rbp + 0x10]
call fcn.180013820
nop
lea r8, [rbp + 0x10]
lea rdx, [rbx + 0x88]
lea rcx, [rbp + 0x128]
call fcn.18003cd90
test al, al
je 0x18003e5f5
mov rcx, qword [rbp + 0x18]
sub rcx, qword [rbp + 0x10]
movabs rsi, 0x6666666666666667
mov rax, rsi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x18003e5f5
mov r8d, 9
lea rdx, str.__html_
lea rcx, [rbp + 0x128]
call fcn.180018ad0
lea r8, [rbp + 0x10]
lea rdx, [rbx + 0x88]
lea rcx, [rbp + 0x128]
call fcn.18003cd90
test al, al
je 0x18003e5e3
mov rcx, qword [rbp + 0x18]
sub rcx, qword [rbp + 0x10]
mov rax, rsi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18003e5f5
mov dword [rbx + 0x1a8], SafeArrayDestroy
xor r14b, r14b
mov byte [rsp + 0x44], r14b
lea rcx, [rbp + 0x10]
call fcn.180013840
nop
lea rcx, [rbp + 0x128]
call fcn.1800126d0
lea r12, [rbx + 0x10]
jmp 0x18003e61d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
test r14b, r14b
jne 0x18003e646
mov ecx, dword [rsp + 0x50]
xor edi, edi
or r13, 0xffffffffffffffff
jmp 0x18003d8c0
xor sil, sil
jmp 0x18003e63a
mov esi, dword [rsp + 0x4c]
movzx esi, sil
test r14b, r14b
cmove esi, edi
jmp 0x18003e64a
mov esi, dword [rsp + 0x4c]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0xb0]
call fcn.1800126d0
movzx eax, sil
jmp 0x18003e688
mov dword [rbx + 0x1a8], 0x57
lea rcx, [rbp + 0xb0]
call fcn.1800126d0
xor al, al
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.1800be9b0
mov rbx, qword [rsp + 0x1360]
add rsp, 0x1310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret