Function at 0x1000492d
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 0x100daf28
push 0x10022c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x20bc
call fcn.10022c40
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push ecx
lea edi, [ebp - 0x20d4]
mov ecx, 0x82f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x20d4], ecx
mov eax, dword [ebp - 0x20d4]
cmp dword [eax + 0x24], 0
je 0x10004994
push 0x69
push 0x100f34f0
call fcn.100b0670
test eax, eax
je 0x10004994
int3
xor ecx, ecx
test ecx, ecx
jne 0x10004977
mov esi, esp
push 0
push 0
push 0
push 0
push str.EASY_UPDATE
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp esi, esp
call fcn.10021b10
mov edx, dword [ebp - 0x20d4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x20d4]
cmp dword [eax + 0x24], 0
jne 0x100049ee
mov esi, esp
push SysFreeString
mov ecx, dword [ebp - 0x20d4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0
mov edx, dword [ebp - 0x20d4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
cmp eax, 1
jne 0x10004a2e
mov esi, esp
push reloc.COMCTL32.dll_CreateMappedBitmap
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0x10005253
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp esi, esp
call fcn.10021b10
cmp eax, 0xffffffff
jne 0x10004a74
mov esi, esp
push reloc.OLEAUT32.dll_SysFreeString
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0
mov ecx, dword [ebp - 0x20d4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
cmp eax, 1
jne 0x10004ab4
mov esi, esp
push reloc.COMCTL32.dll_CreateMappedBitmap
mov edx, dword [ebp - 0x20d4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov eax, dword [ebp - 0x20d4]
cmp dword [eax + 0x28], 0
je 0x10004ad4
push 0x87
push 0x100f3554
call fcn.100b0670
test eax, eax
je 0x10004ad4
int3
xor ecx, ecx
test ecx, ecx
jne 0x10004ab4
mov esi, esp
mov edx, dword [ebp - 0x20d4]
push edx
push 0
mov eax, dword [ebp - 0x20d4]
mov ecx, dword [eax + 0x20]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x20d4]
mov ax, word [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0x20d4]
add ecx, 0xc
call fcn.100acc14
push eax
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x20d4]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x20d4]
cmp dword [edx + 0x28], 0
jne 0x10004b5c
mov esi, esp
push reloc.OLEAUT32.dll_SysReAllocStringLen
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0
mov ecx, dword [ebp - 0x20d4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
cmp eax, 1
jne 0x10004b9c
mov esi, esp
push reloc.COMCTL32.dll_CreateMappedBitmap
mov edx, dword [ebp - 0x20d4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov dword [ebp - 0x64], 0x100f35a0
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x20d4]
cmp dword [eax + 0x2c], 0
je 0x10004bca
push 0x9b
push 0x100f35a8
call fcn.100b0670
test eax, eax
je 0x10004bca
int3
xor ecx, ecx
test ecx, ecx
jne 0x10004baa
mov esi, esp
mov edx, dword [ebp - 0x20d4]
push edx
push 0x80400000
lea eax, [ebp - 0x64]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x20d4]
add ecx, 0x10
call fcn.100acc14
push eax
push 0
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x20d4]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x20d4]
cmp dword [edx + 0x2c], 0
jne 0x10004c46
mov esi, esp
push reloc.OLEAUT32.dll_SysStringLen
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0
mov ecx, dword [ebp - 0x20d4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
cmp eax, 1
jne 0x10004c86
mov esi, esp
push reloc.COMCTL32.dll_CreateMappedBitmap
mov edx, dword [ebp - 0x20d4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x20d4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x10c0], eax
cmp dword [ebp - 0x10c0], 0
jne 0x10004cd9
mov esi, esp
push reloc.OLEAUT32.dll_SysStringLen
mov edx, dword [ebp - 0x20d4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov dword [ebp - 0x5c], 0x20
mov esi, esp
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0x13
mov edx, dword [ebp - 0x20d4]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp esi, esp
call fcn.10021b10
test eax, eax
jne 0x10004d2f
mov esi, esp
push reloc.OLEAUT32.dll_VariantInit
mov ecx, dword [ebp - 0x20d4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
lea edx, [ebp - 0xac]
push edx
call fcn.10022bb0
add esp, 4
mov dword [ebp - 0x10cc], eax
cmp dword [ebp - 0x10cc], 0x197
je 0x10004d5c
cmp dword [ebp - 0x10cc], 0x191
jne 0x10004dcd
mov esi, esp
lea eax, [ebp - 0x20d0]
push eax
push 0xfff
lea ecx, [ebp - 0x20cc]
push ecx
mov edx, dword [ebp - 0x20d4]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp esi, esp
call fcn.10021b10
cmp dword [ebp - 0x20d0], 0
jne 0x10004d5c
mov esi, esp
push 0
push 7
push 0x2eee
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x2c]
push edx
call fcn.100b7740
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp esi, esp
call fcn.10021b10
cmp eax, 0x2f00
jne 0x10004dcb
jmp 0x10004c86
jmp 0x10004dfc
cmp dword [ebp - 0x10cc], 0xc8
je 0x10004dfc
mov esi, esp
push reloc.OLEAUT32.dll_VariantInit
mov edx, dword [ebp - 0x20d4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 3
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov esi, esp
push 0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x58]
push edx
push 5
mov eax, dword [ebp - 0x20d4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp esi, esp
call fcn.10021b10
test eax, eax
je 0x10004e67
lea edx, [ebp - 0x58]
push edx
call fcn.10022c10
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
mov esi, esp
push 4
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x10c8], 0
mov dword [ebp - 0x10b0], 0x1000
mov dword [ebp - 0x10bc], 0
mov dword [ebp - 0x10c4], 0
mov dword [ebp - 0x10b8], 0
mov dword [ebp - 0x10b4], 0
mov esi, esp
push 0
push 1
push 0
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x40]
push edx
mov eax, dword [ebp - 0x20d4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp esi, esp
call fcn.10021b10
cmp eax, 0xffffffff
jne 0x10004f10
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x20d4]
add ecx, 0x30
mov edx, dword [ebp - 0x20d4]
mov eax, dword [edx + 0x30]
call dword [eax + 0x30]
cmp esi, esp
call fcn.10021b10
jmp 0x10004f37
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x40]
xor eax, eax
mov ecx, dword [ebp - 0x10b8]
add ecx, edx
mov edx, dword [ebp - 0x10b4]
adc edx, eax
mov dword [ebp - 0x10b8], ecx
mov dword [ebp - 0x10b4], edx
mov eax, dword [ebp - 0x6c]
or eax, dword [ebp - 0x68]
test eax, eax
je 0x10004f83
push 0
push 0x64
mov ecx, dword [ebp - 0x10b4]
push ecx
mov edx, dword [ebp - 0x10b8]
push edx
call fcn.10022e00
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
push ecx
push edx
push eax
call fcn.10022d50
mov esi, esp
push eax
mov edx, dword [ebp - 0x20d4]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10004f9e
mov esi, esp
push 0
mov eax, dword [ebp - 0x20d4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x10c8]
push ecx
mov edx, dword [ebp - 0x10b0]
push edx
lea eax, [ebp - 0x10ac]
push eax
mov ecx, dword [ebp - 0x20d4]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp esi, esp
call fcn.10021b10
test eax, eax
jne 0x10005001
mov esi, esp
push reloc.OLEAUT32.dll_VariantCopy
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 4], 0xffffffff
jmp 0x10005235
mov dword [ebp - 4], 0xffffffff
jmp 0x1000503d
cmp dword [ebp - 0x10c8], 0
je 0x10005147
mov esi, esp
push 0
mov edx, dword [ebp - 0x20d4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
test eax, eax
jne 0x10005147
mov dword [ebp - 4], 1
mov esi, esp
mov eax, dword [ebp - 0x10c8]
push eax
lea ecx, [ebp - 0x10ac]
push ecx
mov ecx, dword [ebp - 0x20d4]
add ecx, 0x30
mov edx, dword [ebp - 0x20d4]
mov eax, dword [edx + 0x30]
call dword [eax + 0x40]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 4], 0xffffffff
jmp 0x100050d9
mov edx, dword [ebp - 0x10c8]
xor eax, eax
mov ecx, dword [ebp - 0x10b8]
add ecx, edx
mov edx, dword [ebp - 0x10b4]
adc edx, eax
mov dword [ebp - 0x10b8], ecx
mov dword [ebp - 0x10b4], edx
mov eax, dword [ebp - 0x6c]
or eax, dword [ebp - 0x68]
test eax, eax
je 0x10005147
push 0
push 0x64
mov ecx, dword [ebp - 0x10b4]
push ecx
mov edx, dword [ebp - 0x10b8]
push edx
call fcn.10022e00
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x6c]
push ecx
push edx
push eax
call fcn.10022d50
mov esi, esp
push eax
mov edx, dword [ebp - 0x20d4]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
cmp dword [ebp - 0x10c8], 0
je 0x10005170
mov esi, esp
push 0
mov eax, dword [ebp - 0x20d4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
test eax, eax
je 0x10004f9e
mov ecx, dword [ebp - 0x20d4]
add ecx, 0x30
mov edx, dword [ebp - 0x20d4]
mov eax, dword [edx + 0x30]
mov esi, esp
call dword [eax + 0x54]
cmp esi, esp
call fcn.10021b10
mov esi, esp
push 0
mov ecx, dword [ebp - 0x20d4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp esi, esp
call fcn.10021b10
cmp eax, 1
je 0x100051c1
mov edx, dword [ebp - 0x10b8]
cmp edx, dword [ebp - 0x6c]
jne 0x100051c1
mov eax, dword [ebp - 0x10b4]
cmp eax, dword [ebp - 0x68]
je 0x100051ff
mov ecx, dword [ebp - 0x20d4]
add ecx, 0x18
call fcn.100acc14
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, esp
call fcn.10021b10
mov esi, esp
push reloc.COMCTL32.dll_CreateMappedBitmap
mov ecx, dword [ebp - 0x20d4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
jmp 0x10005235
mov esi, esp
push 0x64
mov edx, dword [ebp - 0x20d4]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
mov esi, esp
push 5
mov eax, dword [ebp - 0x20d4]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.10021b10
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x20d4
cmp ebp, esp
call fcn.10021b10
mov esp, ebp
pop ebp
ret