Function at 0x438cb6
Capabilities:
Check http status code
Connect to http server
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x24ec
call fcn.004db570
mov eax, dword [0x667710]
xor eax, esp
mov dword [esp + 0x24e8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x18]
push edi
push ecx
mov dword [esp + 0x18], ecx
xor edi, edi
push ecx
lea ecx, [esp + 0x50]
mov dword [ebx + 0xc], edi
call fcn.0041d625
push ecx
push esi
lea ecx, [esp + 0x50]
call fcn.0041d674
test eax, eax
je 0x439015
push edi
push edi
push 3
push dword [esp + 0x78]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x70]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [esp + 0x30], edi
test edi, edi
je 0x439015
and dword [esp + 0x24f0], 0
lea ecx, [esp + 0x48]
cmp dword [ebx + 4], 0
mov dword [esp + 0x24d4], 0x637a24
mov dword [esp + 0x24d8], 0x637a38
mov dword [esp + 0x24dc], 0x637a58
mov dword [esp + 0x24e0], 0x637a6c
mov dword [esp + 0x24e4], 0x637a84
mov dword [esp + 0x24e8], 0x637a98
mov dword [esp + 0x24ec], 0x637aac
je 0x438ddf
lea eax, [esp + 0x20]
push eax
call fcn.0041d6dd
mov esi, eax
lea ecx, [esp + 0x48]
lea eax, [esp + 0x1c]
push eax
call fcn.0041d73e
xor ecx, ecx
push ecx
push 0x84400200
push ecx
push dword [esi]
push ecx
push dword [eax]
push 0x636720
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [esp + 0x1c]
mov esi, eax
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x438dd9
call fcn.00407965
mov ecx, dword [esp + 0x20]
jmp 0x438e34
lea eax, [esp + 0x28]
push eax
call fcn.0041d6dd
mov esi, eax
lea ecx, [esp + 0x48]
lea eax, [esp + 0x24]
push eax
call fcn.0041d73e
push 0
push 0x84400200
lea ecx, [esp + 0x24dc]
push ecx
push dword [esi]
push 0
push dword [eax]
push 0x636720
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [esp + 0x24]
mov esi, eax
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x438e30
call fcn.00407965
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x438e44
call fcn.00407965
test esi, esi
je 0x439015
and dword [esp + 0xc], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x438e6a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x439009
and dword [esp + 0x40], 0
lea eax, [esp + 0x2c]
and dword [esp + 0x44], 0
and dword [esp + 0x2c], 0
push eax
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x44], esi
push eax
push 0x4389af
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x18], eax
test eax, eax
je 0x439009
push dword [ebx + 8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push 0
push eax
xor eax, eax
mov dword [esp + 0x44], ecx
test ecx, ecx
setne al
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x438ffd
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [ebx + 0xc]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
lea eax, [ebx + 0xc]
je 0x438ff8
cmp dword [eax], 0x12e
je 0x438fab
cmp dword [eax], 0x197
jne 0x438f69
cmp dword [esp + 0xc], 0
jne 0x438fdf
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x438f40
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x2b
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x438f5c
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x2c
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [esp + 0xc], 1
jmp 0x438e51
cmp dword [eax], 0x191
jne 0x438fdf
cmp dword [esp + 0xc], 0
jne 0x438fdf
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x438f94
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x1c
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x438f5c
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x1d
jmp 0x438f55
push 0
lea ecx, [esp + 0x14]
mov edx, 0x400
push ecx
push edx
lea ecx, [ebx + 0x18]
mov dword [esp + 0x1c], edx
call fcn.0040ceb7
push eax
push 0x21
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x438fdc
push 0xffffffffffffffff
lea ecx, [ebx + 0x18]
call fcn.0040ce81
lea eax, [ebx + 0xc]
cmp dword [eax], 0x190
jae 0x439009
lea eax, [esp + 0x30]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004202fe
mov eax, esi
jmp 0x439017
and dword [eax], 0
jmp 0x438fdf
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [esp + 0x24f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da623
mov esp, ebp
pop ebp
ret 0x14