Function at 0x42ee00
Capabilities:
Access peb ldr_data
Connect to http server
Create http request
Delete file
Get ntdll base address
Get number of processors
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4508c8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x469090]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
mov eax, dword [0x469090]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push 0x5000
push 0x40
call esi
push 0x5000
push 0x40
mov dword [esp + 0x18], eax
call esi
push 0x5000
mov ebx, eax
push 0x40
mov dword [esp + 0x30], ebx
call esi
push 0x208
push 0x40
mov dword [esp + 0x24], eax
call esi
push 0x208
push 0x40
mov dword [esp + 0x1c], eax
call esi
mov esi, dword [edi]
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
cmp byte [esi + 0x230], 0
mov dword [esp + 0x18], eax
jne 0x42f28c
push 0
push 0
push 0
push 0
push str.httpget
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42f28c
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x32
push eax
mov dword [esp + 0x44], 4
mov dword [esp + 0x34], 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x42ef13
test byte [esp + 0x24], 0x10
je 0x42ef13
mov ecx, dword [esp + 0x20]
push 8
lea eax, [esp + 0x30]
push eax
push 0x32
push ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov eax, dword [esp + 0x1c]
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [ebx], cx
mov word [eax], dx
mov edx, dword [esp + 0x14]
mov word [edx], cx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov word [ecx], ax
cmp byte [esi + 0x230], al
jne 0x42f274
mov edx, dword [esi + 0x210]
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x42f274
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x6c], eax
mov eax, 0x2800
xor ecx, ecx
mov word [esp + 0x50], dx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], eax
mov eax, 0x104
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
cmp byte [esi + 0x230], cl
jne 0x42f225
mov eax, dword [esi + 0x20c]
lea edx, [esp + 0x38]
push edx
push ecx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x42f225
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esi + 4]
push 0x100
push eax
call fcn.0043782b
add esp, 0xc
mov edi, edi
cmp dword [esp + 0xc], 0
jne 0x42f050
mov ecx, dword [esi + 0x210]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x42f1d9
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [esi + 0x214]
push edx
push 2
push eax
call ebx
test eax, eax
jne 0x42f095
mov ecx, edi
call fcn.0042ed00
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x42f1a5
push str.InternetSetOption1
push str.ERROR
call fcn.0040c980
jmp 0x42f1a5
mov edx, dword [esp + 0x20]
push 4
lea ecx, [esi + 0x218]
push ecx
push 6
push edx
call ebx
test eax, eax
jne 0x42f0d4
mov ecx, edi
call fcn.0042ed00
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x42f1a5
push str.InternetSetOption2
push str.ERROR
call fcn.0040c980
jmp 0x42f1a5
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
push 0
push 3
push eax
call ebx
mov edx, dword [esp + 0x20]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, dword [esp + 0x24]
push ecx
push edx
call ebx
mov edx, dword [esp + 0x60]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x20]
setle cl
dec ecx
and ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x2c], eax
mov ecx, edi
test eax, eax
je 0x42f16d
mov edx, dword [esp + 0x28]
push edx
mov edx, eax
call fcn.0042f590
mov ebx, eax
test ebx, ebx
je 0x42f160
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esp + 0xc]
push ebx
push edx
mov ecx, edi
call fcn.0042f310
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x42f192
call fcn.0042ed00
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x42f18b
push str.InternetConnect
push str.ERROR
call fcn.0040c980
mov eax, edi
call fcn.0042fcb0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0xc], 0
mov eax, edi
call fcn.0042fcb0
cmp byte [esi + 0x230], 0
jne 0x42f245
cmp byte [edi + 8], 0
je 0x42f1ca
mov ecx, edi
call fcn.0042fa80
test al, al
jne 0x42f245
cmp dword [esi + 0x21c], 0
jg 0x42f020
jmp 0x42f245
mov eax, str.Cant_cretae_file
lea ecx, [esp + 0x74]
call fcn.004020f0
mov dword [esp + 0xa0], 0
push eax
mov eax, dword [esi + 0x210]
call fcn.00402160
cmp dword [eax + 0x14], 8
jb 0x42f206
mov eax, dword [eax]
mov edx, eax
mov eax, esi
call fcn.00412f80
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00402130
jmp 0x42f245
mov ecx, edi
call fcn.0042ed00
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x42f245
push str.InternetCrackUrl
push str.ERROR
call fcn.0040c980
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [edi + 8], 0
jne 0x42f263
mov eax, dword [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esi + 0x224]
test eax, eax
je 0x42f2ac
push esi
push 0x64
call eax
jmp 0x42f2ac
mov ecx, edi
call fcn.0042ed00
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x42f2ac
push str.CreateFile
jmp 0x42f2a2
mov ecx, edi
call fcn.0042ed00
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x42f2ac
push str.InternetOpen
push str.ERROR
call fcn.0040c980
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.DLL_LocalFree]
push ecx
call ebx
mov edx, dword [esp + 0x28]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov al, byte [edi + 8]
mov byte [esi + 0x231], al
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0043722b
mov esp, ebp
pop ebp
ret