Function at 0x401090
Capabilities:
Check http status code
Create http request
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2030
call fcn.00409490
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0
push 0
push 0
or esi, 0xffffffff
push str.CF1WebLaunchAfx
mov dword [ebp - 0x202c], eax
mov dword [ebp - 0x2030], ecx
mov dword [ebp - 0x2018], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2014], eax
test eax, eax
je 0x40135b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov dword [ebp - 0x200c], 0xc8
mov dword [ebp - 0x2020], 1
mov dword [ebp - 0x2024], 0
jmp 0x401116
mov eax, dword [ebp - 0x2014]
mov edx, dword [ebp - 0x202c]
push 0
push 0x400000
push 0
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4012f3
push 0
lea eax, [ebp - 0x2028]
push eax
lea ecx, [ebp - 0x200c]
push ecx
push 0x20000013
push esi
mov dword [ebp - 0x2028], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x2020], eax
cmp eax, 1
jne 0x4011b3
mov edx, dword [ebp - 0x200c]
push edx
push eax
lea eax, [ebp - 0x1004]
push str.Open_connection_for_Launch_Args:_Status:__i__statusCode:__u
push eax
call fcn.004093d0
add esp, 0x10
lea ecx, [ebp - 0x1004]
push ecx
call ebx
push 0
push 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [ebp - 0x2024], eax
jmp 0x4012f3
mov dword [ebp - 0x201c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1000
lea edx, [ebp - 0x2004]
push 0
push edx
mov edi, eax
call fcn.004094c0
add esp, 0xc
push 0x1000
lea eax, [ebp - 0x2004]
push eax
lea ecx, [ebp - 0x201c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
push 0
push 0
lea edx, [ebp - 0x2010]
push edx
push 0x400
push edi
push 0
push 0x1300
mov dword [ebp - 0x2010], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x2010]
push eax
push edi
lea ecx, [ebp - 0x1004]
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE__failed_with_error__d:_msg:__s
push ecx
call fcn.004093d0
add esp, 0x10
lea edx, [ebp - 0x1004]
push edx
call ebx
mov eax, dword [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x201c]
lea ecx, [ebp - 0x2004]
push ecx
push edx
lea eax, [ebp - 0x1004]
push str.InternetGetLastResponseInfo___error__d:_msg:__s
push eax
call fcn.004093d0
add esp, 0x10
lea ecx, [ebp - 0x1004]
push ecx
call ebx
push 0
lea edx, [ebp - 0x2008]
push edx
lea eax, [ebp - 0x2004]
push eax
push 0x16
push esi
mov dword [ebp - 0x2008], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [ebp - 0x2008]
inc eax
mov dword [ebp - 0x2008], eax
cmp eax, 0x8000
jae 0x4012f3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
lea ecx, [ebp - 0x2008]
push ecx
mov edi, eax
push edi
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push edi
lea edx, [ebp - 0x1004]
push str.HttpQueryInfo_HTTP_QUERY_RAW_HEADERS_CRLF__returned:___s_
push edx
call fcn.004093d0
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2024], 0x2f00
je 0x401110
cmp dword [ebp - 0x2020], 0
pop edi
pop ebx
je 0x401334
cmp dword [ebp - 0x200c], 0xc8
jne 0x401334
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2030]
push ecx
push edx
push esi
call fcn.00401000
add esp, 0xc
mov dword [ebp - 0x2018], eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [ebp - 0x2014]
push eax
call esi
mov eax, dword [ebp - 0x2018]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409472
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409472
mov esp, ebp
pop ebp
ret