Function at 0x422d40
Capabilities:
Check internet connectivity via wininet
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a5ad
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x888], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je case.0x422dcb.18
mov esi, dword [eax + 8]
mov dword [esp + 0x28], esi
cmp esi, ebx
je case.0x422dcb.18
mov eax, dword [esi + 0x30]
add eax, 0x13
cmp eax, 0xe
ja case.0x422dcb.18
movzx eax, byte [eax + 0x423750]
jmp dword [eax*4 + 0x42373c]
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x240]
mov dword [edi + 0x1c], ecx
push eax
lea ecx, [esp + 0x3e8]
call fcn.00438c10
mov byte [esp + 0x44], bl
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x2c]
push edx
push 0x1fff8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], fcn.004c61e0
mov dword [esp + 0x38], fcn.004c83aa
mov dword [esp + 0x3c], fcn.004c6103
call fcn.004027e0
mov byte [esp + 0x888], 3
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x40]
call fcn.0041ac00
test al, al
jne 0x422e43
mov edi, 3
jmp 0x423065
mov byte [esp + 0x30], bl
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x50c]
call fcn.004023d0
mov byte [esp + 0x888], 5
call fcn.0040a280
mov ecx, edi
push ebx
lea edi, [esp + 0x30]
call fcn.0040f9b0
test al, al
jne 0x422e7e
mov edi, 5
jmp 0x423050
cmp dword [esp + 0x3e8], ebx
jne 0x422ea0
push str.sg_cloud
push 0x5192f4
lea edx, [esp + 0x3ec]
call fcn.004392f0
add esp, 8
lea eax, [esp + 0x3e4]
call fcn.00439250
push eax
lea ecx, [esp + 0x628]
call fcn.00438c10
push str..json
push 0x5192f4
lea edx, [esp + 0x62c]
call fcn.004392f0
add esp, 8
lea eax, [esp + 0x624]
call fcn.00439250
lea ecx, [esp + 0x50c]
push ecx
mov ebx, eax
call fcn.00401580
xor eax, eax
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x518]
lea ebx, [esp + 0x24]
call fcn.00401500
lea ecx, [esp + 0x84]
mov edi, eax
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x84]
call fcn.00438d30
sub esp, 0x124
mov edi, esp
mov ecx, edi
mov dword [esp + 0x158], 1
mov dword [esp + 0x180], esp
call fcn.00438ae0
cmp byte [esp + 0x2c4], 0
lea eax, [esp + 0x1b4]
jne 0x422f68
mov eax, dword [esp + 0x1b0]
add eax, 4
mov edx, edi
call fcn.00438d30
mov dword [esp + 0x9b8], 0xf
call fcn.0040a280
mov ecx, ebx
lea edx, [esp + 0x15c]
mov byte [esp + 0x9b8], 8
call fcn.00412ee0
test al, al
je 0x422fae
cmp dword [esp + 0x1c], 0
je 0x422fae
cmp dword [esp + 0x18], 0
je 0x422fae
xor bl, bl
jmp 0x422fb0
mov bl, 1
mov edi, 6
lea ecx, [esp + 0x78]
mov dword [esp + 0x888], edi
call fcn.00438c80
test bl, bl
jne 0x423042
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0041afb0
or edx, 0xffffffff
test eax, eax
je 0x423010
push 0xa
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x34], 0
call fcn.004ca9fa
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, eax
test ecx, ecx
je 0x423010
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423002
sub ecx, ebx
je 0x423010
or edx, 0xffffffff
mov eax, dword [esp + 0x18]
test edx, edx
sete cl
movzx edx, cl
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
call fcn.0045f9a0
xor ecx, ecx
add esp, 8
test al, al
setne cl
add ecx, 7
mov edi, ecx
lea ecx, [esp + 0x624]
call fcn.00438c80
xor ebx, ebx
lea eax, [esp + 0x50c]
call fcn.00402520
lea ecx, [esp + 0x2c]
call fcn.00437e60
lea eax, [esi + 0x240]
push eax
lea ecx, [esp + 0x1a0]
call fcn.00438c10
mov dword [esp + 0x24], eax
mov byte [esp + 0x888], 0x10
call fcn.0040a280
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push edi
push edx
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [esi + 0x34]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00412c90
mov esi, eax
call fcn.0040a280
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4230c3
cmp esi, ebx
je 0x4230c3
push esi
call fcn.0041e220
lea ecx, [esp + 0x19c]
call fcn.00438c80
mov byte [esp + 0x888], 2
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00403460
lea ecx, [esp + 0x40]
call fcn.00437e60
lea ecx, [esp + 0x3e4]
call fcn.00438c80
lea ecx, [esp + 0x38]
call fcn.00437e60
mov al, 1
jmp 0x423718
mov edx, dword [esi + 0x10]
add esi, 0x240
push esi
lea ecx, [esp + 0x3e8]
mov dword [edi + 0x1c], edx
call fcn.00438c10
mov byte [esp + 0x44], bl
mov dword [esp + 0x40], ebx
lea ecx, [esp + 0x6c]
call fcn.004027c0
push eax
push 0x1fff8
lea ecx, [esp + 0x5c]
call fcn.004027e0
mov byte [esp + 0x888], 0x13
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x40]
call fcn.004150b0
test al, al
je 0x423345
mov byte [esp + 0x30], bl
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x50c]
call fcn.004023d0
mov byte [esp + 0x888], 0x15
call fcn.0040a280
mov ecx, edi
push ebx
lea edi, [esp + 0x30]
call fcn.0040f9b0
test al, al
je 0x423330
cmp dword [esp + 0x3e8], ebx
jne 0x4231b1
mov eax, str.sg_cloud
lea esi, [esp + 0x3e4]
call fcn.00439230
lea eax, [esp + 0x3e4]
call fcn.00439250
push eax
lea ecx, [esp + 0x628]
call fcn.00438c10
mov eax, str..json
lea esi, [esp + 0x624]
mov byte [esp + 0x888], 0x16
call fcn.00439230
mov eax, esi
call fcn.00439250
lea ecx, [esp + 0x50c]
push ecx
mov ebx, eax
call fcn.00401580
push 1
xor edi, edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x52c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea esi, [esp + 0x3c]
call fcn.00401500
push eax
lea ecx, [esp + 0x2e4]
call fcn.00435960
sub esp, 0x124
mov ecx, esp
mov bl, 0x17
mov byte [esp + 0x9b8], bl
mov dword [esp + 0x180], esp
push edi
push edi
push edi
push edi
push edi
push eax
mov dword [esp + 0x170], 2
call fcn.00435c10
mov dword [esp + 0x9b8], 0x18
call fcn.0040a280
mov ecx, esi
lea edx, [esp + 0x15c]
mov byte [esp + 0x9b8], bl
call fcn.00412ee0
test al, al
je 0x423298
cmp dword [esp + 0x18], edi
je 0x423298
cmp dword [esp + 0x1c], edi
je 0x423298
xor bl, bl
jmp 0x42329a
mov bl, 1
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x888], 0x16
call fcn.00438c80
test bl, bl
jne 0x423324
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0041afb0
or edx, 0xffffffff
cmp eax, edi
je 0x4232fe
push 0xa
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x30], edi
call fcn.004ca9fa
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, eax
cmp ecx, edi
je 0x4232fe
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4232f0
sub ecx, esi
je 0x4232fe
or edx, 0xffffffff
mov eax, dword [esp + 0x1c]
cmp edx, edi
sete cl
movzx edx, cl
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
call fcn.0045f9a0
add esp, 8
lea ecx, [esp + 0x624]
call fcn.00438c80
lea eax, [esp + 0x50c]
call fcn.00402520
lea ecx, [esp + 0x2c]
call fcn.00437e60
mov byte [esp + 0x888], 0x12
jmp 0x4230d7
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x240]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x3e8]
call fcn.00438c10
lea eax, [esi + 0x448]
push eax
lea ecx, [esp + 0x628]
call fcn.00438c10
mov byte [esp + 0x888], 0x1a
cmp dword [esp + 0x1c], ebx
je 0x423433
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423433
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x24]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x38]
call fcn.004150b0
test al, al
jne 0x4233f7
mov ecx, dword [edi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423422
cmp dword [edi + 0x20], 2
jne 0x423422
mov edx, dword [edi + 0x1c]
push ebx
push ebx
push 0xce22
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x624]
call fcn.00438c80
jmp 0x4230f1
mov byte [esp + 0x44], bl
mov dword [esp + 0x40], ebx
lea eax, [esp + 0x40]
push eax
push edi
lea ecx, [esp + 0x62c]
mov byte [esp + 0x890], 0x1b
call fcn.00423760
lea ecx, [esp + 0x40]
call fcn.00437e60
lea ecx, [esp + 0x624]
call fcn.00438c80
jmp 0x4230f1
lea ecx, [esp + 0x624]
call fcn.00438c80
lea ecx, [esp + 0x3e4]
jmp 0x423708
mov eax, dword [esi + 0x24]
mov dword [edi + 0x20], eax
cmp eax, 0xc
jne 0x4234f6
add esi, 0x650
push esi
lea ecx, [esp + 0x628]
call fcn.00438c10
lea ecx, [esp + 0x624]
call fcn.00435ed0
mov ebx, eax
lea edi, [esp + 0x50c]
call fcn.004024b0
mov ecx, edi
mov byte [esp + 0x888], 0x1d
call fcn.00401680
test al, al
je 0x4234ce
cmp dword [esp + 0x50c], 0
je 0x4234ce
mov esi, edi
call fcn.00401a70
mov eax, edi
call fcn.00402520
lea ecx, [esp + 0x624]
call fcn.00438c80
lea ecx, [esp + 0x38]
call fcn.00437e60
mov al, 1
jmp 0x423718
lea eax, [esp + 0x50c]
call fcn.00402520
lea ecx, [esp + 0x624]
call fcn.00438c80
lea ecx, [esp + 0x38]
call fcn.00437e60
mov al, 1
jmp 0x423718
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x240]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x750]
call fcn.00438c10
push str.SGPDTSearch.json
lea ecx, [esp + 0x3e8]
call fcn.00438c10
mov byte [esp + 0x888], 0x1f
cmp dword [edi + 0x20], 4
jne 0x423550
lea ecx, [esp + 0x3e4]
call fcn.00438cb0
mov eax, str.SGCandSearch.json
lea esi, [esp + 0x3e4]
call fcn.00439230
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x18], ebx
je 0x4236f5
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4236f5
push ebx
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x2b], bl
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x423591
test byte [esp + 0x24], 0x47
je 0x423591
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x18]
mov dword [edi + 0x1c], edx
mov byte [esp + 0x30], bl
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x888], 0x20
cmp dword [edi + 0x20], 4
jne 0x4235fd
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
call fcn.004150b0
test al, al
jne 0x4235e2
cmp byte [esp + 0x23], bl
je 0x4236c7
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
push ebx
push eax
push 0x421
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4236c7
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
push 1
push edx
push 0x421
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4236c7
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
push 0x20
push 0x20
lea edx, [esp + 0x48]
lea ecx, [esi + 0x650]
push edx
mov byte [esp + 0x894], 0x21
call fcn.00442330
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, 4
mov dword [esp + 0x1c], 5
jl 0x423678
cmp eax, ebx
mov esi, dword [esp + 0x48]
jle 0x42364c
cmp esi, ebx
je 0x42364c
mov eax, dword [esi]
jmp 0x42364e
xor eax, eax
push eax
call fcn.004c96b6
add esp, 4
cmp dword [esp + 0x4c], 1
mov dword [esp + 0x1c], eax
jle 0x42366b
cmp esi, ebx
je 0x42366b
mov eax, dword [esi + 4]
jmp 0x42366d
xor eax, eax
push eax
call fcn.004c96b6
add esp, 4
mov esi, eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
call fcn.004150b0
push esi
test al, al
jne 0x4236a9
cmp byte [esp + 0x27], bl
je 0x42369b
mov eax, dword [esp + 0x20]
push eax
push 0xce30
jmp 0x4236b3
mov edx, dword [esp + 0x1c]
push 5
push 0xce30
push edx
jmp 0x4236b8
mov eax, dword [esp + 0x20]
push eax
push 0xce2c
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0x40]
call fcn.00442320
lea ecx, [esp + 0x2c]
call fcn.00437e60
lea ecx, [esp + 0x3e4]
call fcn.00438c80
lea ecx, [esp + 0x74c]
call fcn.00438c80
lea ecx, [esp + 0x38]
call fcn.00437e60
mov al, 1
jmp 0x423718
lea ecx, [esp + 0x3e4]
call fcn.00438c80
lea ecx, [esp + 0x74c]
call fcn.00438c80
lea ecx, [esp + 0x38]
call fcn.00437e60
xor al, al
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.004c60f4
mov esp, ebp
pop ebp
ret