Function at 0x47c370
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3a4c
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0047d780
test eax, eax
js 0x47c44e
mov esi, dword [edi + 0x24fc]
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [esi]
cmp esi, dword [edi + 0x24fc]
je 0x47c3e5
push dword [esi + 0xc]
push 0xffffffffffffffff
push dword [esi + 8]
push dword [edi + 0x24c8]
call ebx
test eax, eax
je 0x47c43b
mov esi, dword [esi]
cmp esi, dword [edi + 0x24fc]
jne 0x47c3c7
mov eax, dword [edi + 0x2510]
or eax, dword [edi + 0x2514]
je 0x47c5cb
mov eax, dword [edi + 0x2514]
mov dword [ebp - 0x140], eax
mov eax, dword [edi + 0x2510]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov cx, word [ebp - 0x20]
mov eax, 0x76c
cmp cx, ax
jae 0x47c473
xorps xmm0, xmm0
movlpd qword [ebp - 0x13c], xmm0
jmp 0x47c4b5
push str.HttpAddRequestHeadersX_CHttpTask::Get
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0047e190
mov esi, 0x80004005
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 4
movzx eax, word [ebp - 0x14]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, cx
lea ecx, [ebp - 0x134]
push eax
call fcn.0047b3d0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x138], eax
push str._A___d__B__Y__H:_M:_S_GMT
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00461d40
mov dword [ebp - 4], 0
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x47c4e8
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
push dword [ebp - 0x12c]
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push str.If_Modified_Since:__s
push eax
call fcn.00405150
mov esi, dword [ebp - 0x130]
add esp, 0xc
push 0x20000000
push dword [esi - 0xc]
push esi
push dword [edi + 0x24c8]
call ebx
test eax, eax
jne 0x47c58b
push str.HttpAddRequestHeaders2_CHttpTask::Get
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0047e190
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c560
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47c44e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47c44e
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c5a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47c5cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x254c]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [eax - 0xc], 0
je 0x47c67e
lea ecx, [ebp - 0xa0]
push 0x3a8
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xa4]
push eax
call fcn.00438d30
mov edx, dword [ebp - 0xa4]
mov ecx, edx
mov dword [ebp - 4], 2
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c610
sub ecx, ebx
push ecx
push edx
push 0x1c
push dword [edi + 0x24c8]
call esi
test eax, eax
jne 0x47c65e
push str.InternetSetOptionA1_CHttpTask::Get
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0047e190
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
cmp eax, ecx
je 0x47c44e
push eax
call fcn.00585aef
add esp, 4
jmp 0x47c44e
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x47c67e
push eax
call fcn.00585aef
add esp, 4
mov eax, dword [edi + 0x2550]
cmp dword [eax - 0xc], 0
je 0x47c71d
lea ecx, [ebp - 0x124]
push 0x3a8
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x128]
push eax
call fcn.00438d30
mov edx, dword [ebp - 0x128]
mov ecx, edx
mov dword [ebp - 4], 3
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c6c0
sub ecx, ebx
push ecx
push edx
push 0x1d
push dword [edi + 0x24c8]
call esi
test eax, eax
jne 0x47c6fd
push str.InternetSetOptionA2_CHttpTask::Get
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0047e190
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x124]
jmp 0x47c648
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x47c71d
push eax
call fcn.00585aef
add esp, 4
mov ecx, dword [edi + 0x2510]
mov eax, ecx
mov edx, dword [edi + 0x2514]
or eax, edx
je 0x47c755
cmp dword [edi + 0x250c], edx
jl 0x47c755
jg 0x47c741
cmp dword [edi + 0x2508], ecx
jbe 0x47c755
mov dword [edi + 0x2570], 0
mov dword [edi + 0x2574], 0
cmp dword [edi + 0x24d0], 1
jne 0x47c787
lea eax, [edi + 0x2570]
push eax
push dword [edi + 0x24dc]
lea ecx, [edi + 0x44]
call fcn.0047d150
test al, al
jne 0x47c787
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.m_file.Open_CHttpTask::Get
jmp 0x47c446
push dword [edi + 0x24c8]
mov ecx, edi
call fcn.0047e5c0
cmp dword [edi + 0x24d0], 1
mov esi, eax
jne 0x47c453
test esi, esi
jne 0x47c7d7
movzx ecx, byte [edi + 0x2554]
push ecx
lea ecx, [edi + 0x44]
call fcn.0047b9b0
test al, al
jne 0x47c453
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.m_file.Commit_CHttpTask::Get
push eax
mov ecx, edi
call fcn.0047e190
jmp 0x47c453
cmp dword [edi + 0x2518], 0
je 0x47c7f5
movzx eax, byte [edi + 0x2554]
lea ecx, [edi + 0x44]
push eax
call fcn.0047b9b0
jmp 0x47c453
mov eax, dword [edi + 0x44]
test eax, eax
je 0x47c453
push eax
call fcn.00586344
add esp, 4
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x47c453