Function at 0x140004a00
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2080]
mov eax, 0x2180
call fcn.140020ac0
sub rsp, rax
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rbp + 0x2070], rax
mov rbx, rdx
mov rsi, rcx
mov r12d, 2
mov dword [rcx + 0x18], r12d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x70]
call fcn.140021430
mov dword [rbp + 0x60], 0x1000
mov r9d, 0x4000000
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov byte [rsi + 0x30], 0
call fcn.1400021cc
mov rcx, rax
test rax, rax
je 0x140005092
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x50], rbx
lea rdx, [0x14002b8d8]
lea r14, [r12 - 3]
lea r15d, [r12 - 1]
cmp rdx, 0x10000
jae 0x140004bf5
movzx r13d, dx
xor edx, edx
lea rcx, [0x140031d90]
call fcn.140008b14
mov rdi, rax
mov r14d, r15d
test rax, rax
je 0x140004c27
mov eax, r13d
shr eax, 4
mov qword [rsp + 0x30], rax
inc rax
mov qword [rbp + 0x58], rax
nop dword [rax]
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140004b1b
mov r8d, r13d
mov rdx, rax
mov rcx, rdi
call fcn.140001d14
test rax, rax
jne 0x140004b3f
mov edx, r14d
lea rcx, [0x140031d90]
call fcn.140008b14
mov rdi, rax
inc r14d
test rax, rax
je 0x140004c27
mov rax, qword [rbp + 0x58]
jmp 0x140004af0
test rdi, rdi
je 0x140004c27
mov edx, dword [rsp + 0x30]
inc rdx
mov r8d, 6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140004c27
mov r8d, r13d
mov rdx, rax
mov rcx, rdi
call fcn.140001d14
mov r14, rax
test rax, rax
je 0x140004c1c
movzx edi, word [rax]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140004ba2
mov edx, edi
lea rcx, [rbp + 0x50]
call fcn.140001eb8
mov rbx, qword [rbp + 0x50]
lea r8, [r14 + 2]
mov r13, rdi
movzx r9d, word [r14]
mov rdx, rdi
mov rcx, rbx
call fcn.14000ff68
test eax, eax
je 0x140004be0
cmp eax, 0xc
je 0x1400050a8
cmp eax, 0x16
je 0x1400050b3
cmp eax, 0x22
je 0x1400050b3
cmp eax, 0x50
jne 0x14000509d
cmp edi, dword [rbx - 0xc]
jg 0x1400050b3
mov dword [rbx - 0x10], edi
xor edi, edi
mov word [rbx + r13*2], di
jmp 0x140004c29
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004c00
lea rcx, [rbp + 0x50]
call fcn.1400014c0
mov rbx, qword [rbp + 0x50]
xor edi, edi
jmp 0x140004c30
mov r14, 0xffffffffffffffff
xor edi, edi
jmp 0x140004c30
xor edi, edi
mov r14, 0xffffffffffffffff
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r13, rax
test rax, rax
jne 0x140004c64
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r12d, 5
mov dword [rsi + 0x18], r12d
jmp 0x140005040
xor r8d, r8d
mov rdx, rsi
lea ecx, [r8 + 6]
call fcn.1400031a0
test al, al
jne 0x140004c8f
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r12d, 4
mov dword [rsi + 0x18], r12d
jmp 0x140005040
call fcn.1400021cc
mov rcx, rax
test rax, rax
je 0x1400050be
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x58], rbx
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x70]
mov rdx, r13
mov rcx, rsi
call fcn.140005100
test eax, eax
je 0x140004cdd
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r12d, dword [rsi + 0x18]
jmp 0x14000501b
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140004e8c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, r14
nop dword [rax + rax]
lea rax, [rax + 1]
cmp byte [rdi + rax], 0
jne 0x140004d00
lea r14d, [rax + 1]
test r14d, r14d
js 0x1400050c9
cmp r14d, 0x80
jle 0x140004d30
movsxd rcx, r14d
mov rdx, r12
call fcn.140014758
mov rcx, rax
jmp 0x140004d3a
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x140005087
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x140004e36
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004e34
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
xor edx, edx
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
js 0x1400050d4
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x140004e1c
cmp ebx, 0x80
jle 0x140004dda
mov rdx, rbx
mov r8, r12
call fcn.140014aa8
test rax, rax
je 0x140005087
mov rcx, rax
jmp 0x140004de9
call fcn.14000ffe4
lea rcx, [rsp + 0x48]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400050df
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rdi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
jmp 0x140004e36
cmp ebx, 0x80
jle 0x140004ddf
mov rcx, rbx
mov rdx, r12
call fcn.140014758
mov rcx, rax
jmp 0x140004de9
xor ecx, ecx
test ebx, ebx
jne 0x1400050ea
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140004e5c
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140004e50
mov ecx, eax
mov r8d, ecx
lea rcx, [rbp + 0x58]
call fcn.1400014c0
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x140004e7d
call fcn.14000ffe4
mov rdx, r15
mov rcx, rdi
call fcn.14000908c
mov rbx, qword [rbp + 0x58]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [rbx - 0x10]
test eax, eax
jne 0x140004ea5
mov dword [rsi + 0x18], r12d
jmp 0x14000501b
js 0x140004ecf
lea rdx, [0x14002bd78]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140004ecf
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140004ecf
mov dword [rsi + 0x18], r15d
jmp 0x140005018
cmp dword [rbx - 0x10], 0
jl 0x140005011
lea rdx, [0x14002bda0]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140004f0a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140004f0a
mov dword [rsi + 0x18], 0xd
mov r15d, 0xd
jmp 0x140005018
cmp dword [rbx - 0x10], 0
jl 0x140005011
lea rdx, [0x14002bdc8]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140004f45
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140004f45
mov dword [rsi + 0x18], 0xe
mov r15d, 0xe
jmp 0x140005018
cmp dword [rbx - 0x10], 0
jl 0x140005011
lea rdx, [0x14002bdf0]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140004f80
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140004f80
mov dword [rsi + 0x18], 0x10
mov r15d, 0x10
jmp 0x140005018
cmp dword [rbx - 0x10], 0
jl 0x140005011
lea rdx, [0x14002be30]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140004fb8
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140004fb8
mov dword [rsi + 0x18], 0x11
mov r15d, 0x11
jmp 0x140005018
cmp dword [rbx - 0x10], 0
jl 0x140005011
lea rdx, [0x14002be58]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140004fdd
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140005002
cmp dword [rbx - 0x10], 0
jl 0x140005011
lea rdx, [0x14002be98]
mov rcx, rbx
call fcn.14000aa14
test rax, rax
je 0x140005011
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140005011
mov dword [rsi + 0x18], 0xf
mov r15d, 0xf
jmp 0x140005018
mov dword [rsi + 0x18], r12d
mov r15d, r12d
mov r12d, r15d
lea rdx, [rbx - 0x18]
mov r14, 0xffffffffffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000503c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x50]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14000505a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r12d
mov rcx, qword [rbp + 0x2070]
xor rcx, rsp
call fcn.140009320
mov rbx, qword [rsp + 0x21d0]
add rsp, 0x2180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001fa4
nop
mov ecx, 0x80004005
call fcn.140001fa4
nop
mov ecx, 0x80004005
call fcn.140001fa4
int3
mov ecx, 0x8007000e
call fcn.140001fa4
int3
mov ecx, 0x80070057
call fcn.140001fa4
nop
mov ecx, 0x80004005
call fcn.140001fa4
nop
mov ecx, 0x80070057
call fcn.140001fa4
int3
mov ecx, 0x80070057
call fcn.140001fa4
int3
mov ecx, 0x8007000e
call fcn.140001fa4
int3
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140002d20
call fcn.140002d30
int3