Function at 0x514530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.00583150
mov eax, dword [0x636d78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00582ec0
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, 0x710
push eax
mov ecx, dword [ebp - 8]
call fcn.00512670
mov ecx, dword [ebp - 8]
call fcn.00516fe0
mov byte [ebp - 0x1009], al
movzx eax, byte [ebp - 0x1009]
test eax, eax
jne 0x514599
jmp 0x514c17
push 4
mov ecx, dword [ebp - 8]
call fcn.00514d70
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x1044], 0
mov byte [ebp - 0x1045], 0
mov byte [ebp - 0x1046], 0
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
jne 0x514ae3
movzx eax, byte [0x63e850]
test eax, eax
jne 0x5146a8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1098], eax
mov dword [ebp - 0x109c], ecx
mov edx, dword [ebp - 0x1098]
mov eax, dword [ebp - 0x109c]
mov ecx, dword [edx + 0x1d0]
cmp ecx, dword [eax + 0x1d8]
jne 0x5146a8
mov edx, dword [ebp - 0x1098]
mov eax, dword [ebp - 0x109c]
mov ecx, dword [edx + 0x1d4]
cmp ecx, dword [eax + 0x1dc]
jne 0x5146a8
mov byte [0x63e850], 1
mov eax, dword [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00514e60
movzx edx, al
test edx, edx
je 0x514733
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00582ec0
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, 0x7b8
call fcn.00411660
push eax
mov ecx, dword [ebp - 8]
call fcn.0050ee20
push eax
push str.TID_:__5lu____s_is_Download_Complete
lea eax, [ebp - 0x1008]
push eax
call fcn.0058307d
add esp, 0x10
cmp dword [0x63d14c], 0
je 0x51472e
push 0x17
push 0x17
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [0x63d14c]
mov edx, dword [ecx]
mov eax, dword [0x63d14c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x514ae3
mov ecx, dword [ebp - 8]
add ecx, 0x7b8
call fcn.00411660
push eax
call fcn.00507a80
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], edx
cmp dword [ebp - 0x104c], 0
jl 0x514782
jg 0x514767
cmp dword [ebp - 0x1050], 0
jbe 0x514782
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1050]
mov dword [eax + 0x1020], ecx
mov edx, dword [ebp - 0x104c]
mov dword [eax + 0x1024], edx
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x514796
jmp 0x514ae3
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x60]
call eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], edx
mov eax, dword [ebp - 0x1014]
sub eax, dword [ebp - 0x103c]
mov ecx, dword [ebp - 0x1010]
sbb ecx, dword [ebp - 0x1038]
push ecx
push eax
call fcn.00512050
add esp, 8
mov dword [ebp - 0x109c], eax
mov dword [ebp - 0x1098], edx
cmp dword [ebp - 0x1098], 0
jl 0x514819
jg 0x5147f1
cmp dword [ebp - 0x109c], 0xf
jb 0x514819
mov ecx, dword [ebp - 8]
call fcn.0051e0f0
mov ecx, dword [ebp - 8]
call fcn.0051ea00
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x103c], eax
mov ecx, dword [ebp - 0x1010]
mov dword [ebp - 0x1038], ecx
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x51482d
jmp 0x514ae3
mov ecx, dword [ebp - 8]
call fcn.00514dd0
movzx eax, al
test eax, eax
jne 0x51485b
mov ecx, dword [ebp - 8]
call fcn.00514e30
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x98]
jle 0x51485b
mov byte [ebp - 0x1046], 1
jmp 0x514ae3
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x51486f
jmp 0x514ae3
mov eax, dword [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00514e60
movzx edx, al
test edx, edx
je 0x514891
jmp 0x514ae3
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x5148a5
jmp 0x514ae3
mov ecx, dword [ebp - 8]
call fcn.00518bf0
movzx eax, al
test eax, eax
je 0x5148c8
mov byte [ebp - 0x1045], 1
mov ecx, dword [ebp - 8]
call fcn.0051ff70
jmp 0x514ae3
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x5148dc
jmp 0x514ae3
mov eax, dword [ebp - 0x1014]
sub eax, dword [ebp - 0x1024]
mov ecx, dword [ebp - 0x1010]
sbb ecx, dword [ebp - 0x1020]
push ecx
push eax
call fcn.00512050
add esp, 8
mov dword [ebp - 0x109c], eax
mov dword [ebp - 0x1098], edx
cmp dword [ebp - 0x1098], 0
jl 0x51498a
jg 0x51491e
cmp dword [ebp - 0x109c], 8
jb 0x51498a
mov ecx, dword [ebp - 8]
call fcn.005486a0
push 0xf
call fcn.00514ce0
add esp, 4
push 0x23
call fcn.00514c50
add esp, 4
mov eax, dword [ebp - 0x1040]
and eax, reloc.WS2_32.dll_closesocket
jns 0x51494c
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [ebp - 0x1040]
add ecx, 1
mov dword [ebp - 0x1040], ecx
test eax, eax
jne 0x51498a
push 0x40000
mov ecx, 0x63f2d0
call fcn.00556a40
mov ecx, dword [ebp - 8]
call fcn.005171e0
mov eax, dword [ebp - 8]
mov byte [eax + 0x6d5], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0xa8d], 1
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x51499e
jmp 0x514ae3
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xd43]
test ecx, ecx
je 0x5149b4
mov ecx, dword [ebp - 8]
call fcn.005465a0
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x5149c8
jmp 0x514ae3
mov eax, dword [ebp - 0x1014]
sub eax, dword [ebp - 0x1034]
mov ecx, dword [ebp - 0x1010]
sbb ecx, dword [ebp - 0x1030]
push ecx
push eax
call fcn.00512050
add esp, 8
mov dword [ebp - 0x109c], eax
mov dword [ebp - 0x1098], edx
cmp dword [ebp - 0x1098], 0
jl 0x514a2a
jg 0x514a0a
cmp dword [ebp - 0x109c], 0xa
jb 0x514a2a
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x1034], eax
mov ecx, dword [ebp - 0x1010]
mov dword [ebp - 0x1030], ecx
mov ecx, dword [ebp - 8]
call fcn.005201a0
mov ecx, dword [ebp - 8]
call fcn.0050e060
movzx eax, al
test eax, eax
je 0x514a3e
jmp 0x514ae3
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x8d]
test ecx, ecx
jne 0x514a51
jmp 0x51463d
mov ecx, dword [ebp - 0x1014]
sub ecx, dword [ebp - 0x102c]
mov esi, dword [ebp - 0x1010]
sbb esi, dword [ebp - 0x1028]
mov eax, dword [ebp - 0x1044]
cdq
mov dword [ebp - 0x109c], ecx
mov dword [ebp - 0x1098], esi
mov dword [ebp - 0x10a4], eax
mov dword [ebp - 0x10a0], edx
mov edx, dword [ebp - 0x1098]
cmp edx, dword [ebp - 0x10a0]
jl 0x514aa8
jg 0x514aa6
mov eax, dword [ebp - 0x109c]
cmp eax, dword [ebp - 0x10a4]
jb 0x514aa8
jmp 0x514ade
mov eax, dword [ebp - 0x1010]
cmp eax, dword [ebp - 0x1028]
jg 0x514ade
jl 0x514ac6
mov ecx, dword [ebp - 0x1014]
cmp ecx, dword [ebp - 0x102c]
jae 0x514ade
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x102c], eax
mov ecx, dword [ebp - 0x1010]
mov dword [ebp - 0x1028], ecx
jmp 0x51463d
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
jne 0x514afd
push 0
push 0
mov ecx, dword [ebp - 8]
call fcn.00514e60
mov ecx, dword [ebp - 8]
call fcn.0051ff70
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xff2]
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0x1051], cl
push 0
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
call eax
movzx eax, byte [ebp - 0x1051]
test eax, eax
je 0x514b4e
mov eax, dword [ebp - 8]
add eax, 0x710
push eax
mov ecx, dword [ebp - 8]
call fcn.00513660
jmp 0x514b63
mov ecx, dword [ebp - 8]
add ecx, 0x710
call fcn.00411660
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
call fcn.0050e7f0
push 1
mov ecx, dword [ebp - 8]
call fcn.00514d70
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
jne 0x514bb5
movzx eax, byte [ebp - 0x1045]
test eax, eax
je 0x514b9d
push 0x4ef6
mov ecx, dword [ebp - 8]
call fcn.00514da0
jmp 0x514bb5
movzx eax, byte [ebp - 0x1046]
test eax, eax
je 0x514bb5
push 0x4ef1
mov ecx, dword [ebp - 8]
call fcn.00514da0
push 0
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x64]
call eax
mov ecx, dword [ebp - 8]
call fcn.0050e820
push 0
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
call eax
push 0xf
call fcn.00514ce0
add esp, 4
push 0x23
call fcn.00514c50
add esp, 4
push 0x2800
mov ecx, 0x63f2d0
call fcn.00556a40
push 0x200000
call fcn.00514c30
add esp, 4
call fcn.0053bd20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005824ce
mov esp, ebp
pop ebp
ret