Function at 0x409401
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x425]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x409424
mov dword [edi], 1
push str.Downloading
lea ecx, [esi + 0x388]
call fcn.004147e0
push eax
lea ecx, [esi + 0x390]
call fcn.00414770
mov eax, dword [esi + 0x118]
cmp eax, ebx
jne 0x40978e
cmp dword [esi + 0x3ac], ebx
jne 0x409474
cmp dword [esi + 0x429], ebx
jne 0x40978e
cmp eax, ebx
jl 0x40978e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409440
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
mov dword [esi + 0x398], ebx
mov eax, dword [esi + 0x3a0]
lea ecx, [esi + 0x39c]
mov edi, dword [eax + 8]
call fcn.00415230
lea eax, [esi + 0x38]
lea ecx, [ebp - 0x28]
push eax
call fcn.00414640
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
push eax
call fcn.00404ba1
lea ecx, [ebp - 0x28]
call fcn.004146c0
lea ecx, [ebp - 0x7c]
call fcn.00404353
lea eax, [ebp - 0x7c]
mov dword [esi + 0x41d], edi
mov dword [esi + 0x419], eax
cmp byte [edi + 0x4f], 0xff
lea eax, [edi + 0x48]
jne 0x4094dc
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x7c]
push dword [esi + 0x10]
push edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
call fcn.004044bd
cmp eax, ebx
mov dword [esi + 0x118], eax
mov dword [esi + 0x419], ebx
mov dword [esi + 0x41d], ebx
jl 0x4096d9
cmp dword [ebp - 0x6c], ebx
je 0x4096c1
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x38]
push eax
call fcn.00414640
lea eax, [ebp - 0x38]
lea ecx, [edi + 0x58]
push eax
call fcn.00414770
lea ecx, [ebp - 0x38]
call fcn.004146c0
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x20]
push eax
call fcn.00414640
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xb4]
push eax
call fcn.0041e1a0
lea ecx, [ebp - 0x20]
call fcn.004146c0
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xb4]
push eax
call fcn.0041e230
cmp byte [eax + 7], 0xff
jne 0x40956d
mov eax, dword [eax]
push 0x43ee68
push eax
call sub.MSVCRT.dll_strcmp
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb ebx, ebx
lea ecx, [ebp - 0x5c]
inc ebx
call fcn.004146c0
test ebx, ebx
je 0x409665
cmp byte [edi + 0x57], 0xff
lea ebx, [edi + 0x50]
mov eax, ebx
jne 0x40959e
mov eax, dword [ebx]
push 0x441880
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4095bb
mov dword [esi + 0x118], 0x80004005
jmp 0x40961c
lea eax, [esi + 0x38]
lea ecx, [ebp - 8]
push eax
call fcn.00414640
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x4095d3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414640
cmp byte [ebp - 0x11], 0xff
lea eax, [ebp - 0x18]
jne 0x4095ee
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x10]
lea ecx, [esi + 4]
push eax
mov eax, esi
neg eax
sbb eax, eax
and eax, ecx
push eax
call fcn.00404f80
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [esi + 0x118], eax
call fcn.004146c0
lea ecx, [ebp - 8]
call fcn.004146c0
cmp dword [esi + 0x118], 0
jl 0x40971d
lea eax, [esi + 0x38]
lea ecx, [ebp - 0x30]
push eax
call fcn.00414640
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00414810
add esp, 0xc
lea ecx, [edi + 0x58]
push eax
call fcn.00414770
lea ecx, [ebp - 0x84]
call fcn.004146c0
lea ecx, [ebp - 0x30]
call fcn.004146c0
lea ebx, [edi + 0x58]
mov dword [edi + 0xc], 1
mov eax, ebx
cmp byte [ebx + 7], 0xff
jne 0x409679
mov eax, dword [ebx]
push 0
push eax
call fcn.00413763
mov dword [edi + 0x1c], eax
add edi, 0x40
pop ecx
cmp byte [edi + 7], 0xff
pop ecx
jne 0x409691
mov edi, dword [edi]
push 0x43ed10
push edi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4096b4
mov eax, dword [ebp - 0x64]
push ebx
lea ecx, [esi + 0x40]
mov dword [esi + 0x104], eax
call fcn.00414770
lea ecx, [ebp - 0xb4]
call fcn.0041e2d0
xor ebx, ebx
lea ecx, [ebp - 0x7c]
call fcn.00404378
lea ecx, [ebp - 0x54]
call fcn.00404c11
mov edi, dword [ebp - 0xc]
jmp 0x409440
mov ecx, dword [esi + 0x36c]
lea edi, [esi + 0x36c]
cmp ecx, ebx
je 0x4096f0
call fcn.00402788
mov dword [edi], ebx
lea ecx, [esi + 0x11c]
call fcn.00404349
lea ecx, [ebp - 0x7c]
call fcn.00404378
lea ecx, [ebp - 0x54]
call fcn.00404c11
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4097ab
mov dword [eax], ebx
jmp 0x4097ab
lea eax, [ebp - 0x44]
lea ecx, [ebp - 8]
push eax
call fcn.00414640
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x409735
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 8]
call fcn.004146c0
mov ecx, dword [esi + 0x36c]
lea edi, [esi + 0x36c]
test ecx, ecx
je 0x40975c
call fcn.00402788
and dword [edi], 0
lea ecx, [esi + 0x11c]
call fcn.00404349
lea ecx, [ebp - 0xb4]
call fcn.0041e2d0
lea ecx, [ebp - 0x7c]
call fcn.00404378
lea ecx, [ebp - 0x54]
call fcn.00404c11
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4097ab
and dword [eax], 0
jmp 0x4097ab
mov ecx, dword [esi + 0x36c]
add esi, 0x36c
cmp ecx, ebx
je 0x4097a5
call fcn.00402788
mov dword [esi], ebx
cmp edi, ebx
je 0x4097ab
mov dword [edi], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret