Function at 0x482aa7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x94]
mov ecx, dword [eax]
push edi
xor ebx, ebx
xor edi, edi
cmp ecx, ebx
je 0x482ac8
mov edi, dword [ecx + 4]
mov dword [eax], ebx
call fcn.004a3d7e
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], edx
cmp dword [esi + 0xc8], ebx
je 0x482aef
or dword [esi + 0x13c], 0xffffffff
jmp 0x482d43
cmp dword [ebp + 8], ebx
jne 0x482ce4
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
je 0x482ce4
or dword [esi + 0x13c], 0xffffffff
lea edi, [esi + 0x98]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x482b1e
call fcn.00447fa4
mov dword [edi], ebx
lea ecx, [esi + 0x9c]
cmp dword [ecx], 0xffffffff
je 0x482b2e
call fcn.0047230d
lea edi, [esi + 0xa0]
mov eax, dword [edi]
cmp eax, ebx
je 0x482c3f
xor ecx, ecx
cmp word [eax], bx
sete cl
cmp cl, bl
jne 0x482c3f
lea ecx, [ebp - 0x18]
call fcn.00406edf
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
add eax, ecx
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00407578
test eax, eax
je 0x482cab
cmp dword [ebp - 8], ebx
je 0x482cab
cmp byte [ebp - 0xc], 5
jne 0x482cab
lea ecx, [ebp - 0x8c]
call fcn.004e676c
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 8]
call fcn.004e7a53
push eax
mov ecx, esi
call fcn.0047ef46
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.0048ea50
mov edx, dword [ebp + 8]
mov ecx, eax
call fcn.0047235c
test eax, eax
jne 0x482c0f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Error:_file_rename_failed:__d
call fcn.0041ffc1
pop ecx
pop ecx
mov ecx, edi
call fcn.0048ea50
push eax
push str.Error_naming_from__s
call fcn.0041ffc1
push dword [ebp + 8]
push str.Error_naming_to__s
call fcn.0041ffc1
add esp, 0x10
mov ecx, edi
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, edi
call fcn.0048db07
lea ecx, [ebp + 8]
call fcn.0048db07
or byte [esi + 0xf4], 0x10
lea ecx, [ebp - 0x8c]
call fcn.004e6791
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4f20b4
call fcn.004067a4
test byte [esi + 0x2c], 2
je 0x482c57
call fcn.0047d75a
push dword [ebp + 0x10]
mov edx, dword [eax]
push dword [ebp + 0xc]
mov ecx, eax
call dword [edx + 8]
push dword [ebp + 0x10]
lea edi, [esi + 0xa8]
mov ecx, edi
call fcn.0048ea50
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.004a4b1e
test al, al
jne 0x482cdb
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
call fcn.0048ea50
push eax
push str.File_write_failed:__s___u_bytes
call fcn.0041ffc1
add esp, 0x10
push 0x4f1e13
push str.Internal_Server_Error
push 0x1f4
mov ecx, esi
call fcn.00481907
jmp 0x482d43
lea ecx, [esi + 0xa4]
call fcn.0048e964
mov ecx, eax
call fcn.0048c22b
push eax
push str.Got_bad_info_file_for_URL:__s
call fcn.0041ffc1
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4f20b4
call fcn.004067a4
jmp 0x482d43
mov ecx, esi
call fcn.00481f13
jmp 0x482d43
cmp edi, ebx
je 0x482d43
test byte [edi + 0x167], 0x20
je 0x482d01
or dword [esi + 0x13c], 0xffffffff
or byte [esi + 0xf5], 1
jmp 0x482d43
mov edi, dword [edi + 0x1d0]
cmp edi, 0xffffffff
je 0x482d14
mov dword [esi + 0x13c], edi
jmp 0x482d1e
mov dword [esi + 0x13c], 0xa
mov ecx, dword [esi + 0x13c]
mov eax, 0x12c
cmp ecx, eax
jae 0x482d2f
mov eax, ecx
mov dword [esi + 0x13c], eax
cmp eax, 5
ja 0x482d3d
push 5
pop eax
mov dword [esi + 0x13c], eax
pop edi
pop esi
pop ebx
leave
ret 0x10