Function at 0x10086e5
Capabilities:
Delete file
Get common file path
Initialize winhttp library
Prepare http request
Read .ini file
Receive http response
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 8], ebx
mov dword [ebp - 0x30], 0x1001a1c
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
cmp ecx, ebx
je 0x1008be1
cmp byte [ecx], bl
je 0x1008be1
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1008be1
push ecx
lea ecx, [ebp - 0x30]
mov dword [eax], ebx
call fcn.010084a3
mov edi, 0x2518
push edi
call sub.cmutil.dll_CmMalloc
mov esi, eax
cmp esi, ebx
jne 0x100876b
lea ecx, [ebp - 0x30]
call fcn.010047b4
push 8
jmp 0x1008beb
push edi
push ebx
push esi
call sub.msvcrt.dll_memset
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x7c]
mov dword [esi + 0x10], eax
add esp, 0xc
lea eax, [esi + 0x27e]
mov dword [esi + 0x1c], eax
push esi
mov eax, 0x81
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
push 0x10000000
lea ecx, [esi + 0x380]
lea eax, [esi + 0x482]
push ebx
push dword [ebp - 0x28]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x2c], eax
mov eax, 0x825
lea ecx, [esi + 0x14cc]
mov dword [esi], 0x3c
mov dword [esi + 8], 0x20
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x10087f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1008b8a
push dword [ebp + 8]
push 0x1003234
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push dword [ebp - 8]
call sub.cmutil.dll_CmFree
mov eax, dword [ebp - 0xc]
inc eax
push eax
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1008b8a
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x1008849
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
jbe 0x100886b
mov dword [ebp - 0xc], eax
cmp eax, 0x800
jbe 0x1008808
jmp 0x1008b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10031fc
push dword [0x101135c]
mov dword [ebp - 4], eax
call fcn.0100a43e
add esp, 0xc
jmp 0x1008b8a
add ecx, 0x18
push ecx
call sub.cmutil.dll_CmMalloc
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
cmp eax, ebx
je 0x1008b8a
push eax
push ebx
push 0x10031f8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1008b49
mov eax, dword [edi]
cmp byte [eax], bl
je 0x1008b49
push dword [ebp - 8]
call sub.cmutil.dll_CmFree
mov eax, dword [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
xor edi, edi
inc edi
push edi
push 0xc0000000
push dword [eax]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x1008b7c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
mov edi, 0x1003198
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.01008561
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], ebx
je 0x1008921
push dword [ebp + 8]
call sub.cmutil.dll_CmFree
cmp dword [ebp - 0x10], ebx
je 0x100892e
push dword [ebp - 0x10]
call sub.cmutil.dll_CmFree
cmp dword [ebp - 0x14], ebx
je 0x1008b2a
movzx eax, word [esi + 0x18]
push ebx
push eax
push dword [esi + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1008b19
push 0x1002
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x100897c
push 0x100315c
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
jmp 0x1008b60
push 0x900
push ebx
push ebx
push dword [esi + 0x2c]
mov edi, 0x801
push edi
push eax
call fcn.01004f68
cmp eax, ebx
mov dword [ebp + 8], eax
jge 0x10089c3
push dword [ebp - 0x10]
call sub.cmutil.dll_CmFree
push dword [ebp + 8]
push 0x1003124
movzx eax, word [ebp + 8]
push dword [0x101135c]
mov dword [ebp - 4], eax
call fcn.0100a43e
add esp, 0xc
jmp 0x1008b60
push 0x900
push ebx
push ebx
push dword [esi + 0x34]
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.01005262
cmp eax, ebx
mov dword [ebp + 8], eax
jge 0x10089ee
push edi
call sub.cmutil.dll_CmFree
push dword [ebp + 8]
push 0x10030ec
jmp 0x10089a9
xor eax, eax
cmp dword [esi + 0xc], 2
sete al
neg eax
sbb eax, eax
and eax, 0x800000
or eax, 0x100
push eax
push ebx
push ebx
push ebx
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push edi
mov dword [ebp - 0x10], eax
call sub.cmutil.dll_CmFree
cmp dword [ebp - 0x10], ebx
je 0x1008b08
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1008a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10030a8
push dword [0x101135c]
mov dword [ebp - 4], eax
call fcn.0100a43e
add esp, 0xc
jmp 0x1008b52
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1008a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003060
jmp 0x1008a45
mov edi, 0x400
push edi
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1008b52
mov dword [ebp + 8], ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1008b49
cmp dword [ebp - 0xc], ebx
jne 0x1008ab8
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 1
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1008b49
cmp dword [ebp + 8], ebx
je 0x1008a90
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
push dword [ebp - 8]
push 0x1002ec0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x1008b52
push 0x1003010
push dword [0x101135c]
mov dword [ebp - 4], 0xd
call fcn.0100a43e
pop ecx
pop ecx
jmp 0x1008b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002fd4
jmp 0x1008a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002f94
jmp 0x10089ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002f5c
push dword [0x101135c]
mov dword [ebp - 4], eax
call fcn.0100a43e
add esp, 0xc
jmp 0x1008b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], ebx
je 0x1008b60
push dword [ebp - 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x1008b6e
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x1008b7c
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x1008b8a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call sub.cmutil.dll_CmFree
push esi
call sub.cmutil.dll_CmFree
cmp dword [ebp - 4], ebx
je 0x1008bc2
mov esi, dword [ebp + 0xc]
cmp dword [ebp - 0x20], ebx
je 0x1008bb2
mov eax, dword [esi]
cmp eax, ebx
je 0x1008bb2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi]
call sub.cmutil.dll_CmFree
mov dword [esi], ebx
push 0x1002f28
jmp 0x1008bc7
push 0x1002ef0
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call fcn.010047b4
mov eax, dword [ebp - 4]
jmp 0x1008bec
lea ecx, [ebp - 0x30]
call fcn.010047b4
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 8