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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5b0514]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push eax
call fcn.0042de80
mov ebx, eax
test ebx, ebx
jns 0x42dbc3
mov ecx, esi
call fcn.0042f520
lea edi, [esi + 0x1b0]
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42dba6
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42db96
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x42dba6
call fcn.0042fb30
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov edi, eax
test edi, edi
js 0x42dc4b
cmp edi, 1
jne 0x42dbd0
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x42dbf8
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42dc4b
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 4
push eax
push 0
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x42dc33
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42dc4b
mov eax, dword [esp + 0x14]
cmp eax, 0x197
jne 0x42dc6f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov edi, eax
test edi, edi
jns 0x42dbd0
mov ecx, esi
call fcn.0042f520
mov ecx, esi
call fcn.0042f660
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x12d
je 0x42de41
cmp eax, 0x12e
je 0x42de41
cmp eax, 0x191
jne 0x42dc95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x42dc45
cmp eax, 0xc8
je 0x42dcdf
cmp eax, 0xce
je 0x42dcdf
mov ecx, esi
mov dword [esi + 0x1cc], 1
mov dword [esi + 0x1c8], eax
call fcn.0042f520
mov ecx, esi
call fcn.0042f660
mov ecx, 0x2f79
call fcn.0042f710
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00497d40
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.0042f0b0
push ecx
lea eax, [esi + 0xf8]
push eax
push ecx
push 0x80000016
mov ecx, esi
call fcn.0042e560
push ecx
lea eax, [esi + 0x110]
push eax
push ecx
push 0x16
mov ecx, esi
call fcn.0042e560
mov ecx, esi
call fcn.0042d8c0
cmp dword [esi + 0xc4], 0
jne 0x42dd9d
push str.HEAD
lea eax, [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x42dd9d
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x180]
push dword [esi + 0x17c]
push dword [esi + 4]
call ebx
test eax, eax
jne 0x42dd7a
call fcn.0042fb30
mov edi, eax
test edi, edi
js 0x42ddb3
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x42dd9d
mov eax, dword [esi]
push ecx
push dword [esi + 0x17c]
mov ecx, esi
call dword [eax + 0x34]
mov edi, eax
test edi, edi
js 0x42ddfa
cmp dword [esp + 0x10], 0
jne 0x42dd55
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0042f520
lea ebx, [esi + 0x1b0]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42ddee
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42ddde
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x42ddee
call fcn.0042fb30
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x42dc59
mov ecx, esi
call fcn.0042f520
lea ebx, [esi + 0x1b0]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x150], 0
je 0x42de35
add esi, 0x140
cmp dword [esi + 0x14], 8
jb 0x42de25
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x42de35
call fcn.0042fb30
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x42dc59
push ecx
lea eax, [esi + 0xc8]
push eax
push ecx
push 0x21
mov ecx, esi
call fcn.0042e560
mov edi, eax
test edi, edi
js 0x42dc4b
mov ecx, 0x2f7c
call fcn.0042f710
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 8