Function at 0x403610
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 0x418cb0
push 0x416760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x10d8
call fcn.00416730
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x10f0], esi
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x403686
push SysStringLen
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call edi
cmp eax, 1
jne 0x4036b6
push VariantCopy
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x403ba0
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x4036ea
push SysStringLen
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call edi
cmp eax, 1
jne 0x403714
push VariantCopy
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
push esi
push 0
mov ecx, dword [esi + 0x20]
push ecx
push 0
push 0
mov dx, word [esi + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x403759
push SysStringLen
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call edi
cmp eax, 1
jne 0x403783
push VariantCopy
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64], 0x41d0ec
mov dword [ebp - 0x60], 0
mov eax, dword [esi + 0x10]
push esi
push 0x80400000
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push eax
push 0
mov edx, dword [esi + 0x28]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x4037d6
push reloc.OLEAUT32.dll_SysStringLen
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call edi
cmp eax, 1
jne 0x403800
push VariantCopy
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4038c6
mov edi, dword [sym.imp.WININET.dll_InternetErrorDlg]
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x5c], 0x20
push 0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0xac]
push edx
push 0x13
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4038ed
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
cmp eax, 0x197
je 0x40386c
cmp eax, 0x191
jne 0x4038e6
lea edx, [ebp - 0x10d4]
push edx
push 0xfff
lea eax, [ebp - 0x10d0]
push eax
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x10d4]
test eax, eax
jne 0x40386c
push 0
push 7
push 0x2eee
mov edx, dword [esi + 0x2c]
push edx
call ebx
push eax
call edi
cmp eax, 0x2f00
jne 0x40390d
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x403826
push reloc.OLEAUT32.dll_SysStringLen
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xc8
je 0x40390d
push VariantCopy
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 4]
push 3
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call edi
mov dword [ebp - 0x5c], 0x20
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x58]
push edx
push 5
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x403956
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi64]
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
push 4
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
push 0x7fff
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xb0], 0x7fff
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
push ebx
push 1
push ebx
mov edx, dword [esi + 0x40]
push edx
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, 0xffffffff
jne 0x4039af
lea ecx, [esi + 0x30]
mov edx, dword [ecx]
push ebx
push ebx
call dword [edx + 0x30]
jmp 0x4039c2
mov ebx, dword [esi + 0x40]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x6c]
or eax, dword [ebp - 0x68]
push 0
je 0x4039f1
push 0x64
mov ecx, dword [ebp - 0xb4]
push ecx
push ebx
call fcn.00416820
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
push ecx
push edx
push eax
call fcn.00416770
push eax
lea edx, [esi + 8]
push edx
jmp 0x4039f5
lea eax, [esi + 8]
push eax
call edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403a44
push reloc.OLEAUT32.dll_VariantCopy
add esi, 4
push esi
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x403ac8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x403ac8
mov dword [ebp - 4], 1
lea ecx, [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0xc8]
push eax
call dword [edx + 0x40]
mov dword [ebp - 4], 0xffffffff
add ebx, dword [ebp - 0xcc]
mov dword [ebp - 0xb8], ebx
adc dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0x6c]
or ecx, dword [ebp - 0x68]
je 0x403ac8
push 0
push 0x64
mov edx, dword [ebp - 0xb4]
push edx
push ebx
call fcn.00416820
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
push ecx
push edx
push eax
call fcn.00416770
push eax
lea edx, [esi + 8]
push edx
call edi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x403b34
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x4039f7
jmp 0x403b34
mov edx, dword [ebp - 0xc8]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0x54]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp eax, 1
je 0x403b75
cmp ebx, dword [ebp - 0x6c]
jne 0x403b75
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0xb4], ecx
jne 0x403b75
push 0x64
lea edx, [esi + 8]
push edx
call edi
push 5
jmp 0x403b84
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push VariantCopy
add esi, 4
push esi
call edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret