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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51089c
mov eax, dword fs:[0]
push eax
sub esp, 0x748
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x740], eax
push ebx
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x758]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x760], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je case.0x422f47.18
mov esi, dword [eax + 8]
cmp esi, ebx
je case.0x422f47.18
mov eax, dword [esi + 0x30]
add eax, 0x13
cmp eax, 0xe
ja case.0x422f47.18
movzx eax, byte [eax + 0x423848]
jmp dword [eax*4 + 0x423834]
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x240]
mov dword [edi + 0x1c], ecx
push eax
lea ecx, [esp + 0x628]
call fcn.00439010
mov byte [esp + 0x44], bl
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x28]
push edx
push 0x1fff8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x30], fcn.004cc39d
mov dword [esp + 0x34], fcn.004ce4c2
mov dword [esp + 0x38], fcn.004cc2c0
call fcn.004027e0
mov byte [esp + 0x760], 3
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x40]
call fcn.0041ad70
test al, al
jne 0x422fbf
mov edi, 3
jmp 0x4231e3
mov byte [esp + 0x2c], bl
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x3e4]
call fcn.004023d0
mov byte [esp + 0x760], 5
call fcn.0040a6b0
mov ecx, edi
push ebx
lea edi, [esp + 0x2c]
call fcn.0040fd80
test al, al
jne 0x422ffa
mov edi, 5
jmp 0x4231ce
cmp dword [esp + 0x628], ebx
jne 0x42301c
push str.sg_cloud
push 0x51f1f4
lea edx, [esp + 0x62c]
call fcn.00439710
add esp, 8
lea eax, [esp + 0x624]
call fcn.00439670
push eax
lea ecx, [esp + 0x500]
call fcn.00439010
push str..json
push 0x51f1f4
lea edx, [esp + 0x504]
call fcn.00439710
add esp, 8
lea eax, [esp + 0x4fc]
call fcn.00439670
lea ecx, [esp + 0x3e4]
push ecx
mov ebx, eax
call fcn.00401580
xor eax, eax
push eax
push 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x3f4]
lea ebx, [esp + 0x28]
call fcn.00401500
lea ecx, [esp + 0x88]
mov edi, eax
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x88]
call fcn.00439130
sub esp, 0x124
mov edi, esp
mov ecx, edi
mov dword [esp + 0x168], 1
mov dword [esp + 0x184], esp
call fcn.00438f20
mov dword [esp + 0x894], 9
cmp byte [esp + 0x2c8], 0
lea eax, [esp + 0x1b8]
jne 0x4230f0
mov eax, dword [esp + 0x1b4]
add eax, 4
mov edx, edi
call fcn.00439130
mov ecx, ebx
lea edx, [esp + 0x15c]
mov byte [esp + 0x894], 8
call fcn.0042d910
add esp, 0x134
test al, al
je 0x42312c
cmp dword [esp + 0x1c], 0
je 0x42312c
cmp dword [esp + 0x18], 0
je 0x42312c
xor bl, bl
jmp 0x42312e
mov bl, 1
mov edi, 6
lea ecx, [esp + 0x78]
mov dword [esp + 0x760], edi
call fcn.00439080
test bl, bl
jne 0x4231c0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0041b120
or edx, 0xffffffff
test eax, eax
je 0x42318e
push 0xa
lea ecx, [esp + 0x38]
push ecx
push eax
mov dword [esp + 0x40], 0
call fcn.004d0b0a
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, eax
test ecx, ecx
je 0x42318e
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423180
sub ecx, ebx
je 0x42318e
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 + 0x30]
call fcn.0045fbc0
xor ecx, ecx
add esp, 8
test al, al
setne cl
add ecx, 7
mov edi, ecx
lea ecx, [esp + 0x4fc]
call fcn.00439080
xor ebx, ebx
lea eax, [esp + 0x3e4]
call fcn.00402520
lea ecx, [esp + 0x28]
call fcn.004382a0
lea eax, [esi + 0x240]
push eax
lea ecx, [esp + 0x1a0]
call fcn.00439010
mov dword [esp + 0x24], eax
mov byte [esp + 0x760], 0xf
call fcn.0040a6b0
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.00413050
mov esi, eax
call fcn.0040a6b0
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x423241
cmp esi, ebx
je 0x423241
push esi
call fcn.0041e3c0
lea ecx, [esp + 0x19c]
call fcn.00439080
mov byte [esp + 0x760], 2
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00403460
lea ecx, [esp + 0x40]
jmp 0x423812
mov edx, dword [esi + 0x10]
add esi, 0x240
push esi
lea ecx, [esp + 0x628]
mov dword [edi + 0x1c], edx
call fcn.00439010
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 + 0x760], 0x12
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x40]
call fcn.00415260
test al, al
je 0x423495
mov byte [esp + 0x2c], bl
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x3e4]
call fcn.004023d0
mov byte [esp + 0x760], 0x14
call fcn.0040a6b0
mov ecx, edi
push ebx
lea edi, [esp + 0x2c]
call fcn.0040fd80
test al, al
je 0x423480
cmp dword [esp + 0x628], ebx
jne 0x423313
mov eax, str.sg_cloud
lea esi, [esp + 0x624]
call fcn.00439630
lea eax, [esp + 0x624]
call fcn.00439670
push eax
lea ecx, [esp + 0x500]
call fcn.00439010
mov eax, str..json
lea esi, [esp + 0x4fc]
mov byte [esp + 0x760], 0x15
call fcn.00439630
mov eax, esi
call fcn.00439670
lea ecx, [esp + 0x3e4]
push ecx
mov ebx, eax
call fcn.00401580
xor edi, edi
push edi
push 1
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x60]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x408]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
lea esi, [esp + 0x40]
call fcn.00401500
push eax
lea ecx, [esp + 0x2e8]
call fcn.00435dc0
sub esp, 0x124
mov ecx, esp
mov dword [esp + 0x184], esp
push edi
push edi
push edi
push edi
push edi
mov byte [esp + 0x8a8], 0x16
push eax
mov dword [esp + 0x180], 2
call fcn.00436070
mov ecx, esi
lea edx, [esp + 0x15c]
call fcn.0042d910
add esp, 0x134
test al, al
je 0x4233e9
cmp dword [esp + 0x18], edi
je 0x4233e9
cmp dword [esp + 0x1c], edi
je 0x4233e9
xor bl, bl
jmp 0x4233eb
mov bl, 1
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x760], 0x15
call fcn.00439080
test bl, bl
jne 0x423474
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0041b120
or edx, 0xffffffff
cmp eax, edi
je 0x42344e
push 0xa
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x30], edi
call fcn.004d0b0a
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, eax
cmp ecx, edi
je 0x42344e
lea esi, [ecx + 1]
jmp 0x423440
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423440
sub ecx, esi
je 0x42344e
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 + 0x30]
call fcn.0045fbc0
add esp, 8
lea ecx, [esp + 0x4fc]
call fcn.00439080
lea eax, [esp + 0x3e4]
call fcn.00402520
lea ecx, [esp + 0x28]
call fcn.004382a0
mov byte [esp + 0x760], 0x11
jmp 0x423255
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x240]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x628]
call fcn.00439010
lea eax, [esi + 0x448]
push eax
lea ecx, [esp + 0x500]
call fcn.00439010
mov byte [esp + 0x760], 0x18
cmp dword [esp + 0x1c], ebx
je 0x423583
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423583
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.00415260
test al, al
jne 0x423547
mov ecx, dword [edi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423572
cmp dword [edi + 0x20], 2
jne 0x423572
mov edx, dword [edi + 0x1c]
push ebx
push ebx
push 0xce22
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x4fc]
call fcn.00439080
jmp 0x423817
mov byte [esp + 0x44], bl
mov dword [esp + 0x40], ebx
lea eax, [esp + 0x40]
push eax
push edi
lea ecx, [esp + 0x504]
mov byte [esp + 0x768], 0x19
call fcn.00423860
lea ecx, [esp + 0x40]
call fcn.004382a0
lea ecx, [esp + 0x4fc]
call fcn.00439080
jmp 0x423817
lea ecx, [esp + 0x4fc]
call fcn.00439080
lea ecx, [esp + 0x624]
call fcn.00439080
lea ecx, [esp + 0x38]
call fcn.004382a0
xor al, al
mov ecx, dword [esp + 0x758]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x740]
xor ecx, esp
call fcn.004cc2b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
mov dword [edi + 0x20], eax
cmp eax, 0xc
jne 0x423675
add esi, 0x650
push esi
lea ecx, [esp + 0x500]
call fcn.00439010
lea ecx, [esp + 0x4fc]
call fcn.00439650
mov ebx, eax
lea edi, [esp + 0x3e4]
call fcn.004024b0
mov ecx, edi
mov byte [esp + 0x760], 0x1b
call fcn.00401680
test al, al
je 0x42364d
cmp dword [esp + 0x3e4], 0
je 0x42364d
mov esi, edi
call fcn.00401a70
mov eax, edi
call fcn.00402520
lea ecx, [esp + 0x4fc]
call fcn.00439080
lea ecx, [esp + 0x38]
call fcn.004382a0
mov al, 1
jmp 0x4235a6
lea eax, [esp + 0x3e4]
call fcn.00402520
lea ecx, [esp + 0x4fc]
call fcn.00439080
lea ecx, [esp + 0x38]
call fcn.004382a0
mov al, 1
jmp 0x4235a6
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x240]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x628]
call fcn.00439010
mov byte [esp + 0x760], 0x1c
cmp dword [esp + 0x18], ebx
je 0x42358f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42358f
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 0x4236d8
test byte [esp + 0x24], 0x47
je 0x4236d8
mov byte [esp + 0x23], 1
mov edx, dword [esp + 0x18]
mov dword [edi + 0x1c], edx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x28], ebx
mov byte [esp + 0x760], 0x1d
cmp dword [edi + 0x20], 4
jne 0x423744
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x28]
call fcn.00415260
test al, al
jne 0x423729
cmp byte [esp + 0x23], bl
je 0x42380e
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 0x42380e
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 0x42380e
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 + 0x76c], 0x1e
call fcn.00442650
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, 4
mov dword [esp + 0x1c], 5
jl 0x4237bf
cmp eax, ebx
mov esi, dword [esp + 0x48]
jle 0x423793
cmp esi, ebx
je 0x423793
mov eax, dword [esi]
jmp 0x423795
xor eax, eax
push eax
call fcn.004cf7cd
add esp, 4
cmp dword [esp + 0x4c], 1
mov dword [esp + 0x1c], eax
jle 0x4237b2
cmp esi, ebx
je 0x4237b2
mov eax, dword [esi + 4]
jmp 0x4237b4
xor eax, eax
push eax
call fcn.004cf7cd
add esp, 4
mov esi, eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x28]
call fcn.00415260
push esi
test al, al
jne 0x4237f0
cmp byte [esp + 0x27], bl
je 0x4237e2
mov eax, dword [esp + 0x20]
push eax
push 0xce30
jmp 0x4237fa
mov edx, dword [esp + 0x1c]
push 5
push 0xce30
push edx
jmp 0x4237ff
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.00442640
lea ecx, [esp + 0x28]
call fcn.004382a0
lea ecx, [esp + 0x624]
call fcn.00439080
lea ecx, [esp + 0x38]
call fcn.004382a0
mov al, 1
jmp 0x4235a6