Function at 0x4139a0
Capabilities:
Check for time delay via gettickcount
Check internet connectivity via wininet
Create http request
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x428313
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
xor ebx, ebx
push 0x64
mov dword [esp + 0x40], ebx
mov dword [edi + 0x10], 0xc8
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x3c], 1
je 0x413a14
push edi
mov ecx, esi
call fcn.004119f0
mov dword [esi], 0x42aed4
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], 1
jmp 0x413a16
xor esi, esi
mov eax, dword [esp + 0x4c]
lea ebp, [esi + 8]
push eax
mov ecx, ebp
mov byte [esp + 0x40], 0
mov dword [esi + 4], 1
call fcn.00426980
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esi + 0xc], ecx
lea ecx, [edi + 4]
mov dword [esi + 0x10], ebx
push ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + 0x34], eax
mov eax, 1
mov ecx, ebp
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], eax
call sub.MFC42.DLL_CString::TrimLeft
push 0x43382c
mov ecx, ebp
call sub.MFC42.DLL_CString::Find
mov ebx, eax
test ebx, ebx
jge 0x413ab6
test esi, esi
je 0x413a8c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov dword [edi + 0xc], 0
mov dword [edi + 8], 1
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
xor eax, eax
jmp 0x413e31
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x4c]
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.http
push ecx
call ebx
add esp, 8
test eax, eax
je 0x413b5e
mov edx, dword [esp + 0x10]
push str.https
push edx
call ebx
add esp, 8
test eax, eax
je 0x413b5e
test esi, esi
je 0x413b26
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov dword [edi + 0xc], 0
mov dword [edi + 8], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
xor eax, eax
jmp 0x413e31
mov ecx, dword [ebp]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
add ecx, 4
cmp eax, ecx
jg 0x413b78
test esi, esi
je 0x413b26
jmp 0x413b1e
xor ebx, ebx
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x413b97
mov dword [edi + 8], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xc], eax
jmp 0x413c03
push ebx
push ebx
push ebx
push ebx
push str.INIPayDownload
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x3c], eax
jne 0x413bd2
mov dword [edi + 8], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
mov dword [edi + 0xc], eax
je 0x413b34
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x413b34
push ebx
push 4
push ebx
push ebx
push esi
push 0x414860
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x413c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xc], eax
mov dword [edi + 8], 0xc
mov ecx, dword [esi + 0x3c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, ebx
je 0x413b34
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x413b34
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x40], ecx
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x413c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xc], eax
mov dword [edi + 8], 0xc
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x413c5d
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esi + 0x60]
mov dword [esi + 0x5c], ebx
cmp eax, ebx
mov dword [esi + 0x40], ebx
je 0x413c71
mov ecx, edi
call fcn.004137d0
cmp esi, ebx
je 0x413d65
jmp 0x413d5d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x413d2a
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
push 1
push ebx
push ebx
lea ecx, [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x413cf1
mov eax, dword [esp + 0x1c]
cmp eax, 0x100
jb 0x413cbf
cmp eax, 0x108
jbe 0x413cf1
cmp eax, 0x200
jb 0x413ccd
cmp eax, 0x209
jbe 0x413cf1
cmp eax, 0xa0
jb 0x413cdb
cmp eax, 0xa9
jbe 0x413cf1
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [edi + 0x14]
push ecx
call ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
sub eax, edx
cmp eax, ecx
jle 0x413d1e
cmp dword [esi + 0x44], ebx
jne 0x413d1e
cmp dword [esi + 0x3c], ebx
je 0x413d1e
cmp dword [esi + 0x30], ebx
jne 0x413d1e
cmp dword [esi + 0x48], ebx
je 0x413d8b
cmp dword [esi + 0x38], ebx
jne 0x413c99
or ebp, 0xffffffff
cmp dword [esi + 0x44], ebx
je 0x413de6
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], ebx
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
push esi
call fcn.00411670
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x44]
cmp esi, ebx
mov dword [edi + 8], edx
je 0x413d65
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
xor eax, eax
jmp 0x413e31
mov dword [edi + 8], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x3c]
push edx
mov dword [esi + 0x38], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0xffffffffffffffff
push esi
call fcn.00411670
add esp, 8
cmp esi, ebx
je 0x413dbf
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
xor eax, eax
jmp 0x413e31
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x413df4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esi + 0x30]
push ebp
push esi
mov dword [esi + 0x30], ebx
call fcn.00411670
add esp, 8
cmp esi, ebx
je 0x413e10
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov eax, edi
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10