Function at 0x4180a0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456338
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
push ecx
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0xa4], 0
push eax
mov dword [ebp - 0xac], edi
mov dword [ebp - 4], 0
call fcn.0040e1c0
add esp, 0xc
push 0xa8
mov byte [ebp - 4], 1
call fcn.00403fdb
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x418156
push 0xa8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.004336c0
mov ebx, eax
mov dword [ebp - 0xa8], eax
jmp 0x41815e
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040c720
add esp, 8
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x41818a
push 0xffffffffffffffff
push 0
push eax
call fcn.00401e20
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x4181a5
inc eax
push 2
push eax
push dword [ebp - 0x3c]
call fcn.004035c0
add esp, 0xc
push 3
push 0x45b36c
lea ecx, [ebx + 0x3c]
mov dword [ebx + 4], 0x927c0
call fcn.00403e00
push dword [ebp - 0x88]
mov ecx, ebx
call fcn.00433d60
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xc8
jne 0x418616
sub esp, 0x18
lea edx, [esi + 0x1c]
mov ecx, esp
mov dword [ebp - 0x88], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41820b
mov eax, dword [ecx]
jmp 0x41820d
mov eax, ecx
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push edx
mov word [eax], bx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.HttpClient_response_header:
call fcn.004025f0
mov byte [ebp - 4], 1
call fcn.00404730
add esp, 0x30
lea edx, [esi + 0x34]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x88], esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], ebx
jb 0x418262
mov eax, dword [ecx]
jmp 0x418264
mov eax, ecx
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push edx
mov word [eax], bx
call fcn.00401e20
mov ebx, dword [ebp - 0xa8]
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str.HttpClient_response:
call fcn.004025f0
mov byte [ebp - 4], 1
call fcn.00404730
add esp, 0x30
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a730
add esp, 8
mov byte [ebp - 0x98], 0
lea ecx, [ebp - 0x90]
push dword [ebp - 0x98]
xorps xmm0, xmm0
mov byte [ebp - 4], 6
movq qword [ebp - 0x90], xmm0
call fcn.0040a110
push str.success
mov byte [ebp - 0x98], 3
call fcn.00405c40
mov edi, eax
add esp, 4
mov dword [ebp - 0x90], edi
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x418316
mov eax, dword [ecx]
jmp 0x418318
mov eax, ecx
push 3
push 0x45b850
mov byte [eax], 0
call fcn.00403d00
lea ecx, [ebp - 0x24]
call fcn.00407440
mov dword [ebp - 0x88], eax
mov cl, byte [eax]
mov byte [eax], 3
mov edx, dword [eax + 0xc]
mov byte [ebp - 0xa4], cl
mov byte [ebp - 0x98], cl
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov dword [edi + 0xc], eax
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 8
call fcn.0040a110
xorps xmm0, xmm0
mov byte [ebp - 0x98], 0
movq qword [ebp - 0x90], xmm0
push dword [ebp - 0x98]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 9
call fcn.0040a110
xor edi, edi
mov byte [ebp - 0x98], 5
mov dword [ebp - 0x90], 2
mov dword [ebp - 0x8c], edi
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], edi
jb 0x4183e2
mov eax, dword [ecx]
jmp 0x4183e4
mov eax, ecx
push 6
push str.status
mov byte [eax], 0
call fcn.00403d00
lea ecx, [ebp - 0x24]
call fcn.00407440
mov edx, eax
mov cl, byte [edx]
mov byte [edx], 5
mov eax, dword [edx + 0xc]
mov byte [ebp - 0x88], cl
mov byte [ebp - 0x98], cl
mov ecx, dword [edx + 8]
mov dword [edx + 8], 2
mov dword [edx + 0xc], edi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], eax
push dword [ebp - 0x88]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xb
call fcn.0040a110
mov edi, dword [ebp - 0xb0]
mov byte [ebp - 4], 6
cmp dword [edi + 0x10], 0
je 0x41852c
mov byte [ebp - 0x98], 0
lea ecx, [ebp - 0x90]
push dword [ebp - 0x98]
xorps xmm0, xmm0
movq qword [ebp - 0x90], xmm0
call fcn.0040a110
push edi
mov byte [ebp - 0x98], 3
call fcn.00405d00
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], eax
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x4184c9
mov eax, dword [ecx]
jmp 0x4184cb
mov eax, ecx
push 6
push str.taskId
mov byte [eax], 0
call fcn.00403d00
lea ecx, [ebp - 0x24]
call fcn.00407440
mov edx, eax
mov cl, byte [edx]
mov byte [edx], 3
mov eax, dword [edx + 0xc]
mov byte [ebp - 0x88], cl
mov byte [ebp - 0x98], cl
mov ecx, dword [edx + 8]
mov dword [edx + 8], edi
mov edi, dword [ebp - 0x8c]
mov dword [edx + 0xc], edi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], eax
push dword [ebp - 0x88]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xd
call fcn.0040a110
mov byte [ebp - 4], 6
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00419720
push 2
push 0x45bb34
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
call fcn.00403d00
cmp dword [ebp - 0x28], 0x10
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
cmovae edi, dword [ebp - 0x3c]
push edi
push str.sendMqttSecretBytes:_s
call fcn.004046d0
add esp, 8
push dword [ebp - 0x2c]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x4185b1
mov eax, dword [ecx]
jmp 0x4185b3
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00403be0
push dword [ebp - 0xac]
call fcn.00421730
mov eax, dword [ebp - 0x40]
add esp, 0x24
cmp eax, 0x10
jb 0x4185e8
inc eax
push 1
push eax
push dword [ebp - 0x54]
call fcn.004035c0
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
call fcn.00402850
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call fcn.0040a110
jmp 0x4189d2
push eax
push str.HttpClient_fail_code:
call fcn.004046d0
add esp, 8
lea edx, [esi + 4]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x88], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x418658
mov eax, dword [ecx]
jmp 0x41865a
mov eax, ecx
push 0xffffffffffffffff
xor edi, edi
push edi
push edx
mov word [eax], di
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
push str.HttpClient_fail_errMsg:
call fcn.004025f0
mov byte [ebp - 4], 1
call fcn.00404730
add esp, 0x30
lea edx, [esi + 0x1c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], edi
jb 0x4186af
mov eax, dword [ecx]
jmp 0x4186b1
mov eax, ecx
push 0xffffffffffffffff
xor edi, edi
push edi
push edx
mov word [eax], di
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push str.HttpClient_header:
call fcn.004025f0
mov byte [ebp - 4], 1
call fcn.00404730
add esp, 0x30
lea edi, [esi + 0x34]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x418712
mov eax, dword [ecx]
jmp 0x418714
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push str.HttpClient_body:
call fcn.004025f0
mov byte [ebp - 4], 1
call fcn.00404730
add esp, 0x30
cmp dword [edi + 0x10], 0
jne 0x418764
push 0x45ab72
lea ecx, [ebp - 0x158]
call fcn.00406980
mov edi, eax
mov byte [ebp - 4], 0x14
mov ebx, 1
jmp 0x418782
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.0040cf30
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0x15
mov ebx, 2
lea eax, [esi + 4]
mov dword [ebp - 0xa4], ebx
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040cf30
add esp, 8
mov dword [ebp - 0x88], eax
push dword [esi]
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0x16
push eax
call fcn.00422560
add esp, 8
push eax
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0x17
push str.downloadFail_code:
push eax
call fcn.0040e290
add esp, 0xc
push str._errMsg:
push eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0x18
push eax
call fcn.0040e160
add esp, 0xc
push dword [ebp - 0x88]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040e0f0
add esp, 0xc
push str._body:
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x1a
push eax
call fcn.0040e160
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x1b
push eax
call fcn.0040e0f0
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.00402850
lea ecx, [ebp - 0xc8]
call fcn.00402850
lea ecx, [ebp - 0xe0]
call fcn.00402850
lea ecx, [ebp - 0xf8]
call fcn.00402850
lea ecx, [ebp - 0x110]
call fcn.00402850
lea ecx, [ebp - 0x128]
call fcn.00402850
test bl, 2
je 0x418885
lea ecx, [ebp - 0x140]
and ebx, 0xfffffffd
call fcn.00402850
mov byte [ebp - 4], 0x24
test bl, 1
je 0x418899
lea ecx, [ebp - 0x158]
call fcn.00402850
mov ebx, dword [ebp - 0xac]
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0041a730
add esp, 8
sub esp, 0x10
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x8c], esp
mov ecx, esp
push eax
call fcn.0040d060
push str.errMsg
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x26
call fcn.00404d60
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.004073c0
mov eax, dword [ebp - 0xb0]
cmp dword [eax + 0x10], 0
je 0x418919
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x8c], esp
push eax
call fcn.0040d060
push str.taskId
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x27
call fcn.00404d60
mov ecx, eax
mov byte [ebp - 4], 0x25
call fcn.004073c0
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00419720
push 0x45bb34
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x28
call fcn.00406980
cmp dword [ebp - 0x28], 0x10
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0x29
cmovae edi, dword [ebp - 0x3c]
push edi
push str.sendMqttSecretBytes:_s
call fcn.004046d0
add esp, 8
push dword [ebp - 0x2c]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x41898a
mov eax, dword [ecx]
jmp 0x41898c
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00403be0
push ebx
call fcn.00421730
add esp, 0x24
lea ecx, [ebp - 0x54]
call fcn.00402850
lea ecx, [ebp - 0x3c]
call fcn.00402850
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x2a
call fcn.0040a110
lea ecx, [ebp - 0x6c]
call fcn.00402850
mov ebx, dword [ebp - 0xa8]
mov ecx, esi
call fcn.004139d0
push 0x4c
push esi
call fcn.0040400e
add esp, 8
mov ecx, ebx
call fcn.00433810
push 0xa8
push ebx
call fcn.0040400e
add esp, 8
lea ecx, [ebp - 0x84]
call fcn.00402850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret