Function at 0x408a70
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435a83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x4474
call fcn.0041a9c0
mov eax, dword [0x4476d4]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x664]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
mov dword [esi + 0x670], eax
jmp 0x408ac0
mov eax, dword [esi + 0x668]
cmp dword [esi + 0x670], eax
je 0x409103
call fcn.0042bc3e
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.0042bc3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0x670]
mov eax, dword [eax]
mov ebx, dword [esi + 0x1c8]
add eax, 4
mov eax, dword [eax]
lea edx, [eax - 0x10]
sub ebx, 0x10
cmp edx, ebx
mov byte [ebp - 4], 1
je 0x408b66
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jge 0x408b37
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x1c8]
call fcn.00402230
jmp 0x408b66
push edx
call fcn.00402080
mov dword [ebp - 0x20], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b5a
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
lea edx, [ebp - 0x384]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408b74
lea eax, [ebp - 0x384]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b87
sub eax, edx
cmp eax, 0x2d
jbe 0x408bae
push 0x2d
lea ecx, [ebp + eax - 0x3b1]
push ecx
lea edx, [ebp - 0x384]
push edx
call fcn.0041af70
add esp, 0xc
lea eax, [ebp - 0x384]
push eax
lea ecx, [esi + 0x74]
call fcn.0042b00c
mov edx, dword [esi + 0x90]
lea ecx, [ebp - 0x64]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0042f54c
mov edx, dword [esi + 0x1c]
push 1
lea ecx, [ebp - 0x64]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x670]
mov eax, dword [eax]
push str..zip
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00407c30
add esp, 0xc
mov eax, dword [eax]
mov ebx, dword [ebp - 0x1c]
lea ecx, [eax - 0x10]
add ebx, 0xfffffff0
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x408c58
mov edx, dword [ebx + 0xc]
test edx, edx
jge 0x408c2c
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402230
jmp 0x408c58
push ecx
call fcn.00402080
mov dword [ebp - 0x20], eax
add esp, 4
or edx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x408c4f
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x3c]
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 0x408c79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x670]
mov eax, dword [eax]
push str..zip
add eax, 4
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00407c30
add esp, 0xc
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x408ceb
mov edx, dword [ebx + 0xc]
test edx, edx
lea edi, [ebx + 0xc]
jge 0x408cc2
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00402230
mov edi, dword [ebp - 0x18]
jmp 0x408ceb
push ecx
call fcn.00402080
add esp, 4
mov dword [ebp - 0x20], eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x408ce2
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
add edi, 0x10
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x38]
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 0x408d0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x670]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
xor ebx, ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov eax, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x284]
push ecx
push eax
mov dword [ebp - 0x20], edx
call fcn.0042cf39
test eax, eax
je 0x408d74
mov eax, dword [esi + 0x670]
mov byte [ebp - 0x264], bl
mov edx, dword [eax]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x284]
push ecx
push eax
call fcn.0042d0d6
mov eax, dword [esi + 0x670]
mov edx, dword [eax]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x408da3
push ebx
lea ecx, [ebp - 0x18]
call fcn.00402030
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edx - 8]
or ecx, eax
jge 0x408dc3
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00402030
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push eax
push edi
push edx
mov ecx, esi
call fcn.00407e80
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
mov byte [ebp - 4], 4
jge 0x408df1
push ebx
lea ecx, [ebp - 0x18]
call fcn.00402030
mov edi, dword [ebp - 0x18]
push edi
lea ecx, [ebp - 0x15c]
call fcn.00406950
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 5
call fcn.00406360
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.004064f0
mov ebx, dword [ebp - 0x94]
inc ebx
push ebx
call fcn.0042bad7
add esp, 4
push 0
push 0
push 0
push 0
push ebx
push eax
push 0
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x24], eax
call fcn.004064f0
push 0
push 0
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0041ae1d
add esp, 0x14
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402550
lea edx, [ebp - 0x484]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call fcn.00407c30
add esp, 0xc
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408eb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [ebp - 0x24]
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00407c30
add esp, 0xc
mov eax, dword [eax]
push 0x1001
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 9
call fcn.0042c4fa
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
call fcn.0042bad2
add esp, 4
lea ecx, [ebp - 0x15c]
call fcn.004063a0
mov edi, edi
push 0x4000
lea eax, [ebp - 0x4484]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004059e0
mov ebx, eax
test ebx, ebx
jle 0x408f3d
push ebx
lea ecx, [ebp - 0x4484]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0042be8d
cmp ebx, 0x4000
je 0x408f10
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004065f0
lea ecx, [ebp - 0x15c]
call fcn.004065c0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.0042c17f
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 4
call fcn.00406540
jmp 0x408fb8
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 + 0x688]
mov ecx, dword [ebp - 0x20]
add eax, ecx
test eax, eax
mov dword [esi + 0x688], eax
fild dword [esi + 0x688]
jge 0x408fef
fadd dword [0x43814c]
mov edx, dword [esi + 0x684]
fild dword [esi + 0x684]
test edx, edx
jge 0x409005
fadd dword [0x43814c]
fdivp st(1)
fmul dword [0x438148]
call fcn.0041ac48
push 0
push eax
mov eax, dword [esi + 0x704]
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 0x409045
push 0
lea ecx, [ebp - 0x18]
call fcn.00402030
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x284]
push ecx
push edi
call fcn.0042cf39
test eax, eax
je 0x409088
mov byte [ebp - 0x264], 0
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x40907b
push 0
lea ecx, [ebp - 0x18]
call fcn.00402030
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x284]
push edx
push edi
call fcn.0042d0d6
mov ecx, dword [edi - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x4090a6
push 0
lea ecx, [ebp - 0x18]
call fcn.00402030
mov edi, dword [ebp - 0x18]
push edi
call ebx
mov ecx, dword [esi + 0x670]
add ecx, 4
add edi, 0xfffffff0
mov dword [esi + 0x670], ecx
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4090d6
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 0x408ac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408ac0
mov eax, dword [esi + 0x204]
mov ebx, dword [eax - 4]
lea edi, [esi + 0x204]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, ebx
or eax, ecx
jge 0x40912c
push 0
mov ecx, edi
call fcn.00402030
mov edi, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.version.dat
push edi
call ebx
mov eax, dword [esi + 0x200]
mov edx, dword [eax - 4]
lea edi, [esi + 0x200]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
or eax, ecx
jge 0x409167
push 0
mov ecx, edi
call fcn.00402030
mov edi, dword [edi]
push 0
push str.UpdateList.dat
push edi
call ebx
call fcn.0042bc3e
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], 0xd
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409194
sub eax, ecx
push eax
push str.Download_Complete_
lea ecx, [ebp - 0x1c]
call fcn.00402230
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 0x4091cc
push 0
lea ecx, [ebp - 0x1c]
call fcn.00402030
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [esi + 0x74]
call fcn.0042b00c
mov ecx, dword [esi + 0x90]
lea eax, [ebp - 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [ebp - 0x74]
push edx
mov ecx, esi
call fcn.0042f54c
mov ecx, dword [esi + 0x1c]
push 1
lea eax, [ebp - 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
mov dword [esi + 0x1f0], 1
call fcn.0041acbd
lea eax, [edi - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409236
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.00419d0f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret