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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f858
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x45407c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x45407c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push 0x5000
push 0x40
mov esi, ecx
call edi
push 0x5000
push 0x40
mov dword [esp + 0x20], eax
call edi
push 0x5000
push 0x40
mov dword [esp + 0x1c], eax
call edi
push 0x208
push 0x40
mov dword [esp + 0x34], eax
call edi
push 0x208
push 0x40
mov dword [esp + 0x28], eax
call edi
mov edi, dword [esi]
push 0
push 0
push 0
push 0
push str.httpget
mov dword [esp + 0x30], eax
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esp + 0x44], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x423c87
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x32
push ebx
mov dword [esp + 0x48], 4
mov dword [esp + 0x44], 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x423879
test byte [esp + 0x34], 0x10
je 0x423879
push 8
lea edx, [esp + 0x28]
push edx
push 0x32
push ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov word [ecx], ax
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax], dx
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [esp + 0x20]
xor edx, edx
push edx
push edx
push 2
xor eax, eax
mov word [ecx], ax
mov eax, dword [esp + 0x24]
push edx
push 1
mov word [eax], dx
mov ecx, dword [edi + 0x210]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x423c6f
mov edx, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
xor ecx, ecx
mov eax, 0x2800
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], eax
mov eax, 0x104
push ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x20c]
push ecx
push eax
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x423c1a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov eax, dword [esp + 0x18]
push eax
lea ecx, [edi + 4]
push 0x100
push ecx
call fcn.00428080
add esp, 0xc
lea esp, [esp]
cmp dword [esp + 0x24], 0
jne 0x4239b0
mov edx, dword [edi + 0x210]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x423bc2
push 4
lea eax, [edi + 0x214]
push eax
push 2
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x423a1c
mov ecx, esi
call fcn.00423670
mov edi, dword [edi + 0x204]
test edi, edi
je 0x4239e8
push str.InternetSetOption1
push str.ERROR
mov ecx, edi
call fcn.00404920
mov edi, dword [esi]
dec dword [edi + 0x21c]
cmp dword [edi + 0x21c], 0
jle 0x423a06
mov ecx, dword [edi + 0x220]
push ecx
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, 0x2710
add dword [edi + 0x218], eax
add dword [edi + 0x214], eax
jmp 0x423b91
push 4
lea edx, [edi + 0x218]
push edx
push 6
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x423a6e
mov ecx, esi
call fcn.00423670
mov edi, dword [edi + 0x204]
test edi, edi
je 0x423a54
push str.InternetSetOption2
push str.ERROR
mov ecx, edi
call fcn.00404920
mov edi, dword [esi]
dec dword [edi + 0x21c]
cmp dword [edi + 0x21c], 0
jle 0x423a06
mov eax, dword [edi + 0x220]
push eax
jmp 0x423a00
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 3
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x2c]
setle dl
dec edx
and edx, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, dword [esp + 0x68]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x28]
setle cl
dec ecx
and ecx, dword [esp + 0x30]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
je 0x423b05
mov ecx, dword [esp + 0x14]
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00423f60
mov edi, eax
test edi, edi
je 0x423af7
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x24]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, dword [esp + 0x24]
push ecx
mov edx, edi
mov ecx, esi
call fcn.00423d00
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, 0x2710
jmp 0x423b54
mov ecx, esi
call fcn.00423670
mov ecx, dword [edi + 0x204]
test ecx, ecx
je 0x423b25
push str.InternetConnect
push str.ERROR
call fcn.00404920
mov edi, dword [esi]
dec dword [edi + 0x21c]
cmp dword [edi + 0x21c], 0
jle 0x423b43
mov edx, dword [edi + 0x220]
push edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, 0x2710
add dword [edi + 0x218], ebx
add dword [edi + 0x214], ebx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [esi]
dec dword [edi + 0x21c]
cmp dword [edi + 0x21c], 0
mov dword [esp + 0x24], 0
jle 0x423b85
mov ecx, dword [edi + 0x220]
push ecx
call dword [sym.imp.KERNEL32.DLL_Sleep]
add dword [edi + 0x218], ebx
add dword [edi + 0x214], ebx
cmp byte [esi + 8], 0
je 0x423ba6
mov ecx, esi
call fcn.00424450
test al, al
jne 0x423c3c
mov edx, dword [esp + 0x30]
cmp dword [edx + 0x21c], 0
jle 0x423c3c
mov ebx, dword [esp + 0x3c]
mov edi, edx
jmp 0x423980
mov eax, str.Cant_cretae_file
lea ecx, [esp + 0x7c]
call fcn.00403d10
mov dword [esp + 0xa8], 0
push eax
mov eax, dword [edi + 0x210]
call fcn.00403d80
cmp dword [eax + 0x14], 8
jb 0x423bef
mov eax, dword [eax]
mov ecx, dword [edi + 0x204]
test ecx, ecx
je 0x423c04
push eax
push str.ERROR
call fcn.00404920
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00403d50
jmp 0x423c40
mov ecx, esi
call fcn.00423670
mov ecx, dword [edi + 0x204]
test ecx, ecx
je 0x423c40
push str.InternetCrackUrl
push str.ERROR
call fcn.00404920
jmp 0x423c40
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esi + 8], 0
jne 0x423c5e
mov ecx, dword [edi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [edi + 0x224]
test eax, eax
je 0x423ca9
push edi
push 0x64
call eax
jmp 0x423ca9
mov ecx, esi
call fcn.00423670
mov edi, dword [edi + 0x204]
test edi, edi
je 0x423ca9
push str.CreateFile
jmp 0x423c9d
mov ecx, esi
call fcn.00423670
mov edi, dword [edi + 0x204]
test edi, edi
je 0x423ca9
push str.InternetOpen
push str.ERROR
mov ecx, edi
call fcn.00404920
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_LocalFree]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004276fb
mov esp, ebp
pop ebp
ret