Function at 0x42ac30
Capabilities:
Check http status code
Delete file
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.0042af30
mov ebx, eax
test ebx, ebx
jns 0x42ac9c
mov ecx, esi
call fcn.0042c840
lea edi, [esi + 0x1b0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42ac8a
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42ac7a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ac8a
call fcn.0042ce60
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, eax
test edi, edi
js 0x42ad1d
cmp edi, 1
jne 0x42aca2
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x42acca
call fcn.0042ce60
mov edi, eax
test edi, edi
js 0x42ad1d
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 4
push eax
push 0
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x42ad05
call fcn.0042ce60
mov edi, eax
test edi, edi
js 0x42ad1d
mov eax, dword [esp + 0x10]
cmp eax, 0x197
jne 0x42ad36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov edi, eax
test edi, edi
jns 0x42aca2
mov ecx, esi
call fcn.0042c840
mov ecx, esi
call fcn.0042c9b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x12d
je 0x42aefe
cmp eax, 0x12e
je 0x42aefe
cmp eax, 0x191
jne 0x42ad5c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x42ad17
cmp eax, 0xc8
je 0x42ad9b
cmp eax, 0xce
je 0x42ad9b
mov ecx, esi
mov dword [esi + 0x1cc], 1
mov dword [esi + 0x1c8], eax
call fcn.0042c840
mov ecx, esi
call fcn.0042c9b0
mov ecx, 0x2f79
call fcn.0042ca60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1c8], eax
mov ecx, esi
lea eax, [esi + 0x1d0]
mov dword [esi + 0x1cc], 1
push eax
call fcn.0042c460
push ecx
lea eax, [esi + 0xf8]
push eax
push ecx
push reloc.WS2_32.dll_shutdown
mov ecx, esi
call fcn.0042b8f0
push ecx
lea eax, [esi + 0x110]
push eax
push ecx
push 0x16
mov ecx, esi
call fcn.0042b8f0
mov ecx, esi
call fcn.0042a9b0
cmp dword [esi + 0xc4], 0
jne 0x42ae59
push str.HEAD
lea eax, [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x42ae59
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push dword [esi + 0x180]
push dword [esi + 0x17c]
push dword [esi + 4]
call ebx
test eax, eax
jne 0x42ae36
call fcn.0042ce60
mov edi, eax
test edi, edi
js 0x42ae64
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42ae59
mov eax, dword [esi]
push ecx
push dword [esi + 0x17c]
mov ecx, esi
call dword [eax + 0x34]
mov edi, eax
test edi, edi
js 0x42aeb1
cmp dword [esp + 0xc], 0
jne 0x42ae11
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0042c840
lea ebx, [esi + 0x1b0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42ae9f
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42ae8f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ae9f
call fcn.0042ce60
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0042c840
lea ebx, [esi + 0x1b0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42aeec
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42aedc
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42aeec
call fcn.0042ce60
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
lea eax, [esi + 0xc8]
push eax
push ecx
push 0x21
mov ecx, esi
call fcn.0042b8f0
mov edi, eax
test edi, edi
js 0x42ad1d
mov ecx, 0x2f7c
call fcn.0042ca60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8