Function at 0x42e010
Capabilities:
Delete file
Initialize winhttp library
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x47e4c8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x49b024]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x49b024]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x50], ecx
cmp eax, ebx
je 0x42e072
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x42e07f
push eax
call edi
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x42e08c
push eax
call edi
mov dword [esi + 0x10], ebx
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x42e0ad
mov dword [esi + 8], 2
xor al, al
jmp 0x42e2f6
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, dword [esp + 0x44]
push 1
push eax
push esi
xor edx, edx
xor ecx, ecx
mov byte [esp + 0x4f], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ebx
call fcn.0042e9f0
test al, al
je 0x42e0fe
lea edi, [esp + 0x54]
call fcn.0042e960
test al, al
jne 0x42e105
mov dword [esi + 8], 5
xor al, al
jmp 0x42e2f6
lea ecx, [esp + 0x64]
call fcn.00409a70
lea ecx, [esp + 0x64]
push ecx
mov edi, esi
mov dword [esp + 0xc4], ebx
call fcn.0042e8d0
test al, al
je 0x42e150
push ebx
push 0x492464
lea ecx, [esp + 0x6c]
call fcn.0040cef0
cmp eax, 0xffffffff
je 0x42e150
lea ecx, [esp + 0x64]
mov dword [esi + 8], 6
call fcn.00409b30
xor al, al
jmp 0x42e2f6
mov edx, dword [esp + 0x50]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42e189
lea ecx, [esp + 0x64]
mov dword [esi + 8], 8
call fcn.00409b30
xor al, al
jmp 0x42e2f6
mov eax, dword [esp + 0x54]
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
push 0
push eax
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push 0
push 0
push 0
push ebx
call edi
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x42e1e0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [esp + 0x64]
call fcn.00409b30
xor al, al
jmp 0x42e2f6
push 0x100000
call fcn.0042ecc3
mov edi, dword [esp + 0x4c]
add esp, 4
mov dword [esp + 0x44], eax
cmp edi, 0x100000
jbe 0x42e218
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042ec89
mov edi, dword [esp + 0x4c]
push edi
call fcn.0042ecc3
add esp, 8
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x58]
push edx
push edi
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x42e2c4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
push 0
lea edx, [esp + 0x60]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42e2c4
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x5c]
jne 0x42e2c4
mov ecx, dword [esi + 0xc]
add dword [esp + 0x4c], eax
test ecx, ecx
je 0x42e2a0
mov eax, dword [esp + 0x4c]
fild dword [esp + 0x4c]
mov edx, dword [ecx]
test eax, eax
jns 0x42e27a
fadd qword [0x4924f0]
mov eax, dword [esp + 0x54]
sub esp, 0x10
fstp qword [esp + 8]
fild dword [esp + 0x64]
test eax, eax
jns 0x42e293
fadd qword [0x4924f0]
mov eax, dword [esi + 4]
fstp qword [esp]
mov edx, dword [edx]
push 0
push eax
call edx
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x42e2c4
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x42e1f5
mov byte [esp + 0x43], 1
mov edx, dword [esp + 0x44]
push edx
call fcn.0042ec89
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov bl, byte [esp + 0x43]
test bl, bl
jne 0x42e2eb
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [esp + 0x64]
call fcn.00409b30
mov al, bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 8