Function at 0x477f1b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3ece
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x90]
mov dword [esp + 0x10], ebx
call fcn.00459493
sub esp, 0x18
mov dword [esp + 0xfc], ebx
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.0041ee74
lea ecx, [esp + 0xd8]
call fcn.00459809
add esp, 0x18
lea ecx, [esp + 0x60]
mov byte [esp + 0xe4], 1
call fcn.00459913
lea eax, [esp + 0x14]
mov byte [esp + 0xe4], 2
push eax
call fcn.00478b34
cmp dword [eax + 0x14], 8
jb 0x477fa6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
lea eax, [esp + 0x14]
push eax
call fcn.0041e77e
mov ecx, dword [eax + 0x38]
call fcn.00469cf9
mov edi, eax
mov byte [esp + 0xe4], 3
cmp dword [edi + 0x14], 8
jb 0x477fdd
mov edi, dword [edi]
cmp dword [esp + 0x74], 8
lea ebx, [esp + 0x60]
cmovae ebx, dword [esp + 0x60]
call fcn.0041e77e
mov ecx, dword [eax + 0x38]
add ecx, 0x3c
cmp dword [ecx + 0x14], 8
jb 0x477ffe
mov ecx, dword [ecx]
cmp dword [0x52564c], 8
mov eax, 0x525638
push 0x4e85ac
cmovae eax, dword [0x525638]
push edi
push ebx
push ecx
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.0045da2b
add esp, 0x18
push 0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 5
call fcn.0041f6b8
sub esp, 0x18
lea eax, [esp + 0xc0]
mov ecx, esp
push eax
call fcn.0041ee74
lea ecx, [esp + 0x60]
call fcn.00458ac7
add esp, 0x18
push 7
pop ebx
xor eax, eax
mov byte [esp + 0xe4], 6
and dword [esp + 0x24], 0
lea ecx, [esp + 0x14]
push eax
push 0x4e85a8
mov dword [esp + 0x30], ebx
mov word [esp + 0x1c], ax
call fcn.0041fba8
mov byte [esp + 0xe4], bl
xor eax, eax
and dword [esp + 0x88], 0
mov edi, 0x4e85b4
push edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x7c], ax
call fcn.00438238
pop ecx
push eax
push edi
lea ecx, [esp + 0x80]
call fcn.0041fba8
lea eax, [esp + 0x14]
mov byte [esp + 0xe4], 8
push eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x4c]
call fcn.0045c7a5
pop ecx
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.0041f6b8
push 0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 6
call fcn.0041f6b8
mov edi, 0x4e85b0
push edi
call fcn.00438238
pop ecx
push eax
push 0
push edi
lea ecx, [esp + 0x54]
call fcn.0042207e
push eax
push 0
lea ecx, [esp + 0x50]
call fcn.0041f444
push dword [esp + 0x58]
push ecx
push 0x4e8620
lea ecx, [esp + 0x54]
call fcn.00424d49
inc eax
lea ecx, [esp + 0x4c]
push eax
call fcn.0041f444
mov dword [esp + 0x40], ebx
xor eax, eax
xor ebx, ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
sub esp, 0x18
mov byte [esp + 0xfc], 9
lea eax, [esp + 0x60]
mov ecx, esp
push eax
call fcn.0041ee74
lea ecx, [esp + 0x44]
call fcn.00470efb
sub esp, 0x18
mov ecx, esp
push 0x4e8618
call fcn.0041eeaf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00470e51
push eax
lea ecx, [esi + 0x50]
call fcn.0041eed4
xor edi, edi
lea ecx, [esp + 0x14]
push ebx
inc edi
push edi
call fcn.0041f6b8
sub esp, 0x18
mov ecx, esp
push str.file
call fcn.0041eeaf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00470e51
push eax
lea ecx, [esi + 0x9c]
call fcn.0041eed4
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
sub esp, 0x18
mov ecx, esp
push 0x4e8624
call fcn.0041eeaf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00470e51
lea ebx, [esi + 0xb4]
push eax
mov ecx, ebx
call fcn.0041eed4
push 0
push edi
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
sub esp, 0x18
mov ecx, esp
push 0x4e85e8
call fcn.0041eeaf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00470e51
push eax
lea ecx, [esi + 0xcc]
call fcn.0041eed4
push 0
push edi
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
sub esp, 0x18
mov ecx, esp
push str.flag
call fcn.0041eeaf
lea ecx, [esp + 0x44]
call fcn.00470c8b
test eax, eax
setne al
sub esp, 0x18
mov ecx, esp
mov byte [esi + 0x69], al
push str.update
call fcn.0041eeaf
lea ecx, [esp + 0x44]
call fcn.00470c8b
test eax, eax
setne al
sub esp, 0x18
mov ecx, esp
mov byte [esi + 0x68], al
push str.newversion
call fcn.0041eeaf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00470e51
lea edi, [esi + 0x6c]
push eax
mov ecx, edi
call fcn.0041eed4
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
sub esp, 0x18
mov ecx, esp
push 0x4e8684
call fcn.0041eeaf
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00470e51
push eax
lea ecx, [esi + 0x84]
call fcn.0041eed4
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
cmp byte [esi + 0x69], 0
je 0x4783d5
push 0x4e8680
mov ecx, ebx
call fcn.00420ac5
test eax, eax
jne 0x47832b
push eax
call fcn.0041e77e
xor ecx, ecx
mov eax, dword [eax + 0x38]
cmp dword [eax + 0x38], ecx
sete cl
push ecx
push 0x853
jmp 0x4783cc
sub esp, 0x18
cmp byte [esi + 0x68], 0
mov ecx, esp
je 0x47837a
call fcn.004234e0
mov edx, 0x5254e8
lea ecx, [esp + 0x2c]
call fcn.0045972a
add esp, 0x18
mov edx, eax
mov ecx, edi
call fcn.00425e23
mov bl, al
lea ecx, [esp + 0x14]
push 0
neg bl
push 1
sbb bl, bl
call fcn.0041f6b8
inc bl
je 0x4783d5
movzx eax, byte [esi + 0x68]
push 0
push eax
push 0x852
jmp 0x4783cc
call fcn.004234e0
mov edx, 0x525698
lea ecx, [esp + 0x2c]
call fcn.0045972a
add esp, 0x18
mov edx, eax
mov ecx, edi
call fcn.00425e23
test al, al
jne 0x4783b0
mov edx, edi
lea ecx, [esp + 0x60]
call fcn.00425e23
test al, al
jne 0x4783b0
mov bl, 1
jmp 0x4783b2
xor bl, bl
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0041f6b8
test bl, bl
je 0x4783d5
push 0
push 0
push 0x854
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 6
call fcn.00470ff8
xor ebx, ebx
lea ecx, [esp + 0x48]
push 0
inc ebx
push ebx
call fcn.0041f6b8
push 0
push ebx
lea ecx, [esp + 0xb0]
call fcn.0041f6b8
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.0041f6b8
push 0
push ebx
lea ecx, [esp + 0xc8]
call fcn.0041f6b8
push 0
push ebx
lea ecx, [esp + 0x98]
call fcn.0041f6b8
mov ecx, dword [esp + 0xdc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret