Function at 0x404e20
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], esi
call fcn.004571ca
mov eax, dword [eax + 0x10]
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x1ec], eax
jne 0x404e83
push edi
push 0x11
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1f8], edi
je 0x404e9b
mov eax, dword [esi + 0x1c]
push edi
push edi
push 0x8001
push eax
jmp 0x40531d
push 0x4054c0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x404ec7
push edi
push 0x11
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1f8], edi
je 0x404edf
mov ecx, dword [esi + 0x1c]
push edi
push edi
push 0x8001
push ecx
jmp 0x40531d
mov eax, dword [esi + 0x64]
cmp dword [eax - 8], edi
je 0x404f0d
mov ebx, dword [esi + 0x1e8]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x1d8]
push esi
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x1ec]
push eax
mov ax, word [esi + 0x1e4]
push eax
push edx
push ecx
jmp 0x404f29
mov dx, word [esi + 0x1e4]
mov eax, dword [esi + 0x1d8]
push esi
push edi
push 3
push edi
push edi
push edx
push eax
mov eax, dword [esi + 0x1ec]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x1f0], eax
jne 0x404f54
push edi
push 0x12
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1f8], edi
je 0x404f6c
mov ecx, dword [esi + 0x1c]
push edi
push edi
push 0x8001
push ecx
jmp 0x40531d
mov ecx, esi
call fcn.00404d10
mov eax, dword [esi + 0x1e8]
mov ecx, dword [esi + 0x1dc]
sub eax, 0x100b
push esi
neg eax
sbb eax, eax
lea edx, [ebp - 0x44]
and eax, 0xff7fce80
mov dword [ebp - 0x44], 0x47c220
add eax, 0x84c03180
mov dword [ebp - 0x40], edi
push eax
mov eax, dword [esi + 0x1f0]
push edx
push edi
push edi
push ecx
push edi
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x1f4], eax
jne 0x404fd8
push edi
push 0x12
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1f8], edi
je 0x404ff0
mov ecx, dword [esi + 0x1c]
push edi
push edi
push 0x8001
push ecx
jmp 0x40531d
mov ebx, dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x1f4]
push 0
push 0
push 0
inc eax
push 0
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4050d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 4
jge 0x40509b
mov edx, dword [esi + 0x1f4]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x1f
push edx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov eax, edi
sub eax, 0x2f0d
je 0x405067
sub eax, 0xc
mov eax, dword [ebp - 0x1c]
je 0x405063
or eax, 0x3180
jmp 0x40506d
or al, 0x80
jmp 0x40506d
mov eax, dword [ebp - 0x1c]
or ah, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1e8]
cmp eax, 0x100b
jne 0x404ff9
mov ecx, dword [esi + 0x1f4]
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x1f
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x404ff9
cmp eax, 0x3e8
jge 0x40516b
cmp dword [esi + 0x1e8], 0x100b
jne 0x4050c7
mov edx, dword [esi + 0x1f4]
push 0
push 7
push edi
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebx
mov dword [ebp - 0x14], 0x3e8
jmp 0x404ff9
mov edx, dword [esi + 0x1f4]
lea eax, [ebp - 0x24]
push 0
lea ecx, [ebp - 0x84]
push eax
push ecx
mov edi, 0x20
push 0x13
push edx
mov dword [ebp - 0x24], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405187
lea eax, [ebp - 0x84]
push eax
call fcn.0042ab68
add esp, 4
cmp eax, 0x197
je 0x405120
cmp eax, 0x191
jne 0x4051a1
mov eax, dword [esi + 0x1f4]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xb8]
push 0x32
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x405120
test esi, esi
jne 0x405149
xor eax, eax
jmp 0x40514c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1f4]
push 0
push 7
push 0x2eee
push ecx
push eax
call ebx
cmp eax, 0x2f00
jne 0x4051c3
jmp 0x404ff9
push 0
push 0x12
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x13
mov ecx, esi
call fcn.00404df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xc8
je 0x4051c3
push eax
push 0x14
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x15
mov ecx, esi
call fcn.00404ae0
mov ecx, dword [esi + 0x1f4]
mov dword [ebp - 0x24], edi
xor edi, edi
lea edx, [ebp - 0x24]
push edi
lea eax, [ebp - 0x64]
push edx
push eax
push 5
push ecx
xor ebx, ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40520f
lea edx, [ebp - 0x64]
mov dword [ebp - 0x14], 1
push edx
call fcn.0042ab68
add esp, 4
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004046b0
push 0x16
mov ecx, esi
call fcn.00404ae0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov edx, dword [esi + 0x1f4]
lea eax, [ebp - 0x18]
push eax
mov eax, 0x400
lea ecx, [ebp - 0x4b8]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40526c
push eax
push 0x17
mov ecx, esi
call fcn.00404d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4052ed
mov eax, dword [esi + 0x1f8]
test eax, eax
jne 0x4052d8
lea ecx, [ebp - 0x20]
call fcn.00449fe6
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x200]
lea ecx, [esi + 0x200]
push edx
lea edx, [ebp - 0x4b8]
mov dword [ebp - 4], 0
push edx
mov byte [ebp - 4], 1
call dword [eax + 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0044a024
mov eax, dword [ebp - 0x18]
push ebx
add edi, eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push edi
push eax
push ecx
mov ecx, esi
call fcn.00405390
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4052ed
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x40522f
mov eax, dword [esi + 0x200]
lea ecx, [esi + 0x200]
call dword [eax + 0x4c]
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x405310
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x8001
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret