Function at 0x408080
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437653
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x4654
call fcn.0041c790
mov eax, dword [0x449704]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x66c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
mov dword [esi + 0x678], eax
jmp 0x4080d0
mov eax, dword [esi + 0x670]
cmp dword [esi + 0x678], eax
je 0x4086f0
call fcn.00429c9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
call fcn.00429c9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x678]
mov eax, dword [eax]
mov edi, dword [esi + 0x1c8]
add eax, 4
mov eax, dword [eax]
lea ebx, [esi + 0x1c8]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
mov byte [ebp - 4], 1
je 0x408174
mov edx, dword [edi + 0xc]
test edx, edx
jge 0x408149
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00401fa0
jmp 0x408174
push ecx
call fcn.00401df0
mov dword [ebp - 0x24], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40816c
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebx]
lea ecx, [ebp - 0x364]
sub ecx, ebx
mov edi, edi
mov al, byte [ebx]
mov byte [ecx + ebx], al
inc ebx
test al, al
jne 0x408180
lea eax, [ebp - 0x364]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408193
sub eax, edx
cmp eax, 0x2d
jbe 0x4081ba
push 0x2d
lea ecx, [ebp + eax - 0x391]
push ecx
lea edx, [ebp - 0x364]
push edx
call fcn.0041cbe0
add esp, 0xc
lea eax, [ebp - 0x364]
push eax
lea ecx, [esi + 0x74]
call fcn.0042e49d
mov eax, dword [esi + 0x678]
mov ecx, dword [eax]
push str..zip
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00406af0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x18
call fcn.00402190
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408211
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x678]
mov eax, dword [eax]
push str..zip
add eax, 4
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00406af0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x19
call fcn.00402190
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40825c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x678]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
xor ecx, ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
mov eax, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x264]
push ecx
push eax
mov dword [ebp - 0x24], edx
call fcn.0042f81b
test eax, eax
je 0x4082c5
mov eax, dword [esi + 0x678]
mov byte [ebp - 0x244], 0
mov edx, dword [eax]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x264]
push ecx
push eax
call fcn.0042f9b8
mov eax, dword [esi + 0x678]
mov edx, dword [eax]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x564]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx - 4]
mov edi, dword [ebx - 0xc]
mov eax, 1
sub eax, ecx
mov ecx, dword [ebx - 8]
or ecx, eax
jge 0x408317
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401da0
mov ebx, dword [ebp - 0x1c]
push edi
lea eax, [ebp - 0x464]
push ebx
push eax
call fcn.0041cbe0
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi - 0xc]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
add esp, 0xc
or ecx, eax
jge 0x40834f
push 0
lea ecx, [ebp - 0x18]
call fcn.00401da0
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x564]
push edi
push eax
call fcn.0041cbe0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push ecx
lea edx, [ebp - 0x564]
push edx
lea eax, [ebp - 0x464]
push eax
mov ecx, esi
call fcn.00407520
test eax, eax
jne 0x4083b2
push eax
push eax
push str.Can_not_DownloadFile___
call fcn.004323c4
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083aa
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [ebx - 0x10]
jmp 0x40881f
mov ebx, dword [edi - 4]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, ebx
or ecx, eax
mov byte [ebp - 4], 0x1a
jge 0x4083d4
push 0
lea ecx, [ebp - 0x18]
call fcn.00401da0
mov edi, dword [ebp - 0x18]
push edi
lea ecx, [ebp - 0x13c]
call fcn.0040ad80
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x1b
call fcn.0040a790
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0040a920
mov ebx, dword [ebp - 0x74]
inc ebx
push ebx
call fcn.00429b35
add esp, 4
push 0
push 0
push 0
push 0
push ebx
push eax
push 0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x20], eax
call fcn.0040a920
push 0
push 0
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x2c]
push edx
push edi
call fcn.0041ca8d
add esp, 0x14
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004022c0
lea ecx, [ebp - 0x664]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 0x1c
call fcn.00406af0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1e
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00406af0
add esp, 0xc
mov eax, dword [eax]
push 0x1001
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1f
call fcn.0042a558
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x21
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4084dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
call fcn.00429b30
add esp, 4
lea ecx, [ebp - 0x13c]
call fcn.0040a7d0
push 0x4000
lea eax, [ebp - 0x4664]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00409e10
mov ebx, eax
test ebx, ebx
jle 0x40851d
push ebx
lea ecx, [ebp - 0x4664]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00429eeb
cmp ebx, 0x4000
je 0x4084f0
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0040aa20
lea ecx, [ebp - 0x13c]
call fcn.0040a9f0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1e
call fcn.0042a1dd
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x1a
call fcn.0040a970
jmp 0x408598
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov dword [ebp - 4], 1
call ebx
push edi
call ebx
mov eax, dword [esi + 0x690]
mov ecx, dword [ebp - 0x24]
add eax, ecx
test eax, eax
mov dword [esi + 0x690], eax
fild dword [esi + 0x690]
jge 0x4085cf
fadd dword [0x43a10c]
mov edx, dword [esi + 0x68c]
fild dword [esi + 0x68c]
test edx, edx
jge 0x4085e5
fadd dword [0x43a10c]
fdivp st(1)
fmul dword [0x43a108]
call fcn.0041ca18
push 0
push eax
mov eax, dword [esi + 0x744]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x408625
push 0
lea ecx, [ebp - 0x18]
call fcn.00401da0
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x264]
push ecx
push edi
call fcn.0042f81b
test eax, eax
je 0x408668
mov byte [ebp - 0x244], 0
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x40865b
push 0
lea ecx, [ebp - 0x18]
call fcn.00401da0
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x264]
push edx
push edi
call fcn.0042f9b8
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x408686
push 0
lea ecx, [ebp - 0x18]
call fcn.00401da0
mov edi, dword [ebp - 0x18]
push edi
call ebx
mov edx, dword [esi + 0x678]
add edx, 4
mov ecx, esi
mov dword [esi + 0x678], edx
call fcn.00405d00
test eax, eax
jne 0x40885b
mov ecx, esi
call fcn.00407100
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4086cc
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1fc]
mov ebx, dword [eax - 4]
lea edi, [esi + 0x1fc]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, ebx
or eax, ecx
jge 0x408719
push 0
mov ecx, edi
call fcn.00401da0
mov eax, dword [edi]
push 0
push str.version.dat
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [edi]
mov ebx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, ebx
or eax, ecx
jge 0x408748
push 0
mov ecx, edi
call fcn.00401da0
mov edi, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call ebx
mov eax, dword [esi + 0x1f8]
mov edx, dword [eax - 4]
lea edi, [esi + 0x1f8]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
or eax, ecx
jge 0x40877c
push 0
mov ecx, edi
call fcn.00401da0
mov eax, dword [edi]
push 0
push str.UpdateList.dat
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [edi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
or eax, ecx
jge 0x4087ab
push 0
mov ecx, edi
call fcn.00401da0
mov edi, dword [edi]
push edi
call ebx
call fcn.00429c9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, str.Download_Complete_
mov dword [ebp - 4], 0x23
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4087d1
sub eax, ecx
push eax
push str.Download_Complete_
lea ecx, [ebp - 0x1c]
call fcn.00401fa0
mov edi, dword [ebp - 0x1c]
mov ebx, dword [edi - 4]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, ebx
or ecx, eax
jge 0x408809
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401da0
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [esi + 0x74]
call fcn.0042e49d
mov dword [esi + 0x1f0], 1
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40883d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
xor eax, eax
call fcn.0041b931
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408879
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4080d0