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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x44206c]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push eax
call fcn.00403f00
mov ebx, eax
test ebx, ebx
jns 0x404c83
mov ecx, esi
call fcn.00403c10
lea edi, [esi + 0x100]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xac], 0
je 0x404c66
add esi, 0x9c
cmp dword [esi + 0x14], 8
jb 0x404c56
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404c66
call fcn.00409640
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004146e0
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea esp, [esp]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov edi, eax
test edi, edi
js 0x404d17
cmp edi, 1
jne 0x404c90
push 0
push dword [esi + 4]
call ebx
test eax, eax
jne 0x404cb8
call fcn.00409640
mov edi, eax
test edi, edi
js 0x404d17
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push 0x20000013
push dword [esi + 4]
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x404cfb
call fcn.00409640
mov edi, eax
test edi, edi
js 0x404d17
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [esp + 0x14]
cmp eax, 0x197
jne 0x404d3b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
jns 0x404c90
mov ecx, esi
call fcn.00403c10
mov ecx, esi
call fcn.00403cf0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004146e0
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x191
jne 0x404d4b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
jmp 0x404d0d
cmp eax, 0xc8
je 0x404d95
cmp eax, 0xce
je 0x404d95
mov ecx, esi
mov dword [esi + 0x11c], 1
mov dword [esi + 0x118], eax
call fcn.00403c10
mov ecx, esi
call fcn.00403cf0
mov ecx, 0x2f79
call fcn.004093f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004146e0
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x118], eax
xor eax, eax
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
mov dword [esi + 0x11c], 1
push eax
push 0
push 5
mov dword [esi + 0x120], 0xffffffff
mov dword [esi + 0x124], 0xffffffff
push dword [esi + 4]
mov dword [esp + 0x28], 0x40
call edi
test eax, eax
jne 0x404de9
call fcn.00409640
test eax, eax
js 0x404e02
lea eax, [esp + 0x18]
push eax
call fcn.0041d946
add esp, 4
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], edx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push dword [esi + 0xd4]
push dword [esi + 0xd0]
push dword [esi + 4]
call ebx
test eax, eax
jne 0x404e35
call fcn.00409640
mov edi, eax
test edi, edi
js 0x404e6e
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x404e58
mov eax, dword [esi]
push ecx
push dword [esi + 0xd0]
mov ecx, esi
call dword [eax + 0x30]
mov edi, eax
test edi, edi
js 0x404eb5
cmp dword [esp + 0xc], 0
jne 0x404e10
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004146e0
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00403c10
lea ebx, [esi + 0x100]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xac], 0
je 0x404ea9
add esi, 0x9c
cmp dword [esi + 0x14], 8
jb 0x404e99
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404ea9
call fcn.00409640
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404d25
mov ecx, esi
call fcn.00403c10
lea ebx, [esi + 0x100]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xac], 0
je 0x404ef0
add esi, 0x9c
cmp dword [esi + 0x14], 8
jb 0x404ee0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404ef0
call fcn.00409640
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404d25