Function at 0x4c6246
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x5092e4]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x46d]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x474], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x4d]
push ebx
push eax
mov byte [esp + 0x54], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x155]
push ebx
push eax
mov byte [esp + 0x15c], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x575]
push ebx
push eax
mov byte [esp + 0x57c], bl
call fcn.00401f80
xor eax, eax
mov word [esp + 0x34], ax
lea edi, [esp + 0x36]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x44], ax
lea edi, [esp + 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
lea eax, [esp + 0x258]
push str.ApplUdt.lck
push eax
mov dword [esp + 0x18], ebx
call fcn.004623aa
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
jne 0x4c635b
call fcn.0041df75
sub eax, dword [0x61d5b8]
cmp eax, 0x493e0
jb 0x4c63c9
call fcn.0041df75
lea ecx, [esp + 0x258]
mov dword [0x61d5b8], eax
call fcn.004a345f
mov dword [esp + 0x10], eax
call fcn.004c5b9e
test eax, eax
je 0x4c63b7
call fcn.0041df75
push 0x94
push str.UpdatePAULA2.c
push 0x20
mov dword [0x61d5b8], eax
call fcn.0047a356
add esp, 0xc
test eax, eax
je 0x4c6385
mov dword [esp + 0x14], 1
mov edi, 0x104
push str.Live.ark
mov ecx, edi
lea eax, [esp + 0x574]
call fcn.00444961
pop ecx
push 1
call fcn.004c5fa1
pop ecx
test eax, eax
jne 0x4c63f4
cmp dword [ebp + 8], ebx
jne 0x4c63e0
push 0x20
call fcn.00476372
pop ecx
cmp dword [esp + 0x10], ebx
je 0x4c63c9
lea ecx, [esp + 0x258]
call fcn.004a3337
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
push str.LiveBranch.ark
mov ecx, edi
lea eax, [esp + 0x574]
call fcn.00444961
pop ecx
lea eax, [esp + 0x570]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00401ba0
push ebx
push ebx
call fcn.004623aa
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.00446954
push 1
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x47c]
call fcn.004a1e8c
add esp, 0x14
test eax, eax
jne 0x4c64af
cmp dword [esp + 0x14], ebx
je 0x4c643f
push 0x20
call fcn.00476372
pop ecx
push 0x190
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x468]
call fcn.004a142a
test eax, eax
je 0x4c64bd
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc2
push str.UpdatePAULA2.c
push 0x20
call fcn.0047a356
add esp, 0xc
test eax, eax
je 0x4c6489
mov dword [esp + 0x14], 1
push 1
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x46c]
call fcn.004a1e8c
pop ecx
test eax, eax
jne 0x4c64af
cmp dword [esp + 0x14], ebx
je 0x4c63b7
jmp 0x4c63af
cmp dword [esp + 0x14], ebx
je 0x4c64bd
push 0x20
call fcn.00476372
pop ecx
lea edi, [esp + 0x48]
mov dword [esp + 0x14], ebx
call fcn.004a142a
test eax, eax
je 0x4c67e5
push esi
lea eax, [esp + 0x365]
push ebx
push eax
mov byte [esp + 0x36c], bl
call fcn.00401f80
add esp, 0xc
push ebx
push ebx
call fcn.004623aa
push eax
lea eax, [esp + 0x15c]
push str._sUpdtTest_
push eax
call fcn.00401954
add esp, 0x14
lea edi, [esp + 0x150]
call fcn.004a142a
test eax, eax
je 0x4c652a
mov ecx, edi
call fcn.004a2121
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea ecx, [esp + 0x154]
call fcn.004a1173
pop ecx
lea eax, [esp + 0x150]
push eax
call fcn.0049f690
pop ecx
push ebx
push ebx
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004b2d3c
add esp, 0x10
test eax, eax
jne 0x4c65cc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf3
push str.UpdatePAULA2.c
push 0x20
call fcn.0047a356
add esp, 0xc
test eax, eax
je 0x4c658c
mov dword [esp + 0x14], 1
push 1
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x46c]
call fcn.004a1e8c
pop ecx
cmp dword [esp + 0x14], ebx
je 0x4c65ad
push 0x20
call fcn.00476372
pop ecx
push ebx
push ebx
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004b2d3c
add esp, 0x10
test eax, eax
je 0x4c63b7
push str.Revision.dat
lea eax, [esp + 0x154]
push eax
mov esi, 0x4cda20
lea eax, [esp + 0x368]
push esi
push eax
call fcn.00401954
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x374]
push eax
xor ecx, ecx
call fcn.004a3b5c
add esp, 0x18
mov edi, str.PAULA.exe
test eax, eax
jne 0x4c6649
push edi
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x368]
push esi
push eax
call fcn.00401954
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x374]
push eax
xor ecx, ecx
call fcn.004a3b5c
add esp, 0x18
test eax, eax
jne 0x4c6649
inc dword [0x61d5bc]
jmp 0x4c63b7
push edi
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
lea eax, [esp + 0x368]
push esi
push eax
call fcn.00401954
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x374]
push eax
xor ecx, ecx
call fcn.004a3b5c
pop ecx
pop ecx
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x48]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041f61b
add esp, 0x20
test eax, eax
jns 0x4c66be
lea ecx, [esp + 0x48]
call fcn.004c5a78
cmp dword [esp + 0x10], ebx
je 0x4c66b6
lea ecx, [esp + 0x258]
call fcn.004a3337
xor eax, eax
inc eax
jmp 0x4c63cb
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x48]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041e5cc
add esp, 0x20
test eax, eax
jne 0x4c6760
mov word [esp + 0x18], ax
lea edi, [esp + 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.Revision.dat
stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
call fcn.004623aa
pop ecx
pop ecx
push eax
lea eax, [esp + 0x368]
push 0x4cda20
push eax
call fcn.00401954
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x374]
push eax
xor ecx, ecx
call fcn.004a3b5c
add esp, 0x18
test eax, eax
je 0x4c6760
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x48]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041e5cc
add esp, 0x20
test eax, eax
je 0x4c6760
lea esi, [esp + 0x18]
lea edi, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x48]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041e5cc
add esp, 0x20
test eax, eax
je 0x4c67e5
call fcn.004ab345
test eax, eax
je 0x4c67e5
xor eax, eax
mov word [esp + 0x18], ax
lea edi, [esp + 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x142
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push str.UpdatePAULA2.c
push eax
call fcn.004205e9
add esp, 0xc
cmp word [esp + 0x1c], bx
je 0x4c669b
cmp word [esp + 0x1c], 6
je 0x4c669b
cmp word [esp + 0x20], 0xe
jae 0x4c669b
cmp word [esp + 0x20], 6
jb 0x4c669b
lea edi, [esp + 0x48]
call fcn.004a142a
test eax, eax
je 0x4c63b7
push 0x4c5cf7
push 1
push 1
push 0xea60
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
lea eax, [esp + 0x164]
push eax
call fcn.004a269f
add esp, 0x18
test eax, eax
js 0x4c63b7
call fcn.00497884
mov ecx, edi
call fcn.004c5a78
mov eax, edi
call fcn.004a14db
lea edi, [esp + 0x150]
call fcn.004a142a
test eax, eax
je 0x4c6850
mov ecx, edi
call fcn.004a2121
mov esi, str.Revision.dat
push esi
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
lea eax, [esp + 0x470]
push 0x4cda20
push eax
call fcn.00401954
add esp, 0x10
lea edi, [esp + 0x468]
call fcn.004a142a
test eax, eax
je 0x4c68a2
push ebx
push esi
push ebx
call fcn.004623aa
pop ecx
pop ecx
push eax
mov eax, edi
push eax
call fcn.004a152f
add esp, 0xc
mov eax, edi
call fcn.004a14db
push 1
call fcn.00448bdb
mov dword [esp], str.UpdtFileLst.txt
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4c66a4