Function at 0x10058478
Capabilities:
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x100587df
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x100587f4
call fcn.1004b634
mov edx, dword [ebp - 4]
mov eax, dword [0x1005c578]
mov ecx, 0x10058804
call fcn.1000484c
call fcn.10012324
mov edx, dword [0x1005c3b8]
mov byte [edx], al
call fcn.10057b6c
test al, al
jne 0x100584e1
push 0
push 0x10058808
push 0x1005880c
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.KERNEL32.DLL_ExitProcess_1
mov eax, 0x1005c2f8
mov edx, dword [0x1005c358]
mov edx, dword [edx]
call fcn.10004808
mov eax, 0x1005c2fc
mov edx, dword [0x1005c358]
mov edx, dword [edx]
call fcn.10004808
mov eax, 0x1005c300
mov edx, dword [0x1005c358]
mov edx, dword [edx]
call fcn.10004808
xor edx, edx
mov eax, dword [0x1005c300]
call fcn.10057f20
test eax, eax
je 0x1005852e
push 0
call sub.KERNEL32.DLL_ExitProcess_1
call fcn.1004b994
lea edx, [ebp - 8]
mov eax, 1
call fcn.10002e74
mov eax, dword [ebp - 8]
mov edx, 0x10058820
call fcn.1000494c
jne 0x10058590
mov eax, 0x1006373c
call fcn.10012450
push 1
push 0
push 0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.10002e74
mov eax, dword [ebp - 0xc]
call fcn.10004a00
push eax
push 0
push 0
mov eax, dword [0x1005c6bc]
mov eax, dword [eax]
call eax
mov eax, dword [0x1006373c]
call fcn.100124ac
push 0
call sub.KERNEL32.DLL_ExitProcess_1
call fcn.10057f90
test al, al
je 0x100585a0
push 0
call sub.KERNEL32.DLL_ExitProcess_1
lea eax, [ebp - 0x10]
call fcn.1004b3f0
mov edx, dword [ebp - 0x10]
mov eax, dword [0x1005c40c]
call fcn.10004578
lea edx, [ebp - 0x14]
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.100580d4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x1005c624]
call fcn.10004578
mov eax, dword [0x1005c45c]
cmp dword [eax], 0
je 0x10058795
mov edx, dword [0x1005c5f4]
mov edx, dword [edx]
mov eax, dword [0x1005c40c]
mov eax, dword [eax]
call fcn.1004b600
test eax, eax
jne 0x100587a7
mov edx, dword [0x1005c500]
mov edx, dword [edx]
mov eax, dword [0x1005c40c]
mov eax, dword [eax]
call fcn.1004b600
test eax, eax
jne 0x100587a7
or edx, 0xffffffff
mov eax, dword [0x1005c2fc]
call fcn.10057f20
test eax, eax
je 0x1005862f
push 0
call sub.KERNEL32.DLL_ExitProcess_1
mov eax, 0x1006373c
call fcn.10012450
push 0
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.10004a00
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.10004a00
push eax
mov eax, dword [0x1005c40c]
mov eax, dword [eax]
call fcn.10004a00
push eax
mov eax, dword [0x1005c338]
mov eax, dword [eax]
call eax
call fcn.10002edc
mov eax, 0x2800
call fcn.10003074
inc eax
push eax
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.10004a00
pop edx
call fcn.10057fb0
mov eax, dword [0x1005c5b0]
cmp dword [eax], 0
je 0x100586b3
push 6
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.10004a00
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 1
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.10004a00
push eax
mov eax, dword [0x1005c620]
mov eax, dword [eax]
call eax
mov eax, dword [0x1006373c]
call fcn.100124ac
push 0x10063730
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
lea edx, [ebp - 0x18]
mov eax, 0x10063730
call fcn.1004b838
mov edx, dword [ebp - 0x18]
mov eax, 0x10063738
call fcn.10004578
mov edx, dword [0x1005c5dc]
mov edx, dword [edx]
mov eax, dword [0x1005c6c4]
mov eax, dword [eax]
call fcn.10052210
mov eax, dword [0x10063738]
push eax
push 1
mov edx, dword [0x1005c5dc]
mov edx, dword [edx]
mov eax, dword [0x1005c6c4]
mov eax, dword [eax]
mov ecx, 0x10058830
call fcn.10051e58
mov edx, 0x10058844
mov eax, 0x80000002
call fcn.10052210
lea edx, [ebp - 0x1c]
mov eax, dword [0x1005c5f4]
mov eax, dword [eax]
call fcn.10058174
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov edx, 0x10058844
mov ecx, dword [0x1005c624]
mov ecx, dword [ecx]
mov eax, 0x80000002
call fcn.10051e58
mov eax, dword [0x1005c63c]
cmp dword [eax], 0
je 0x1005877d
mov eax, 0x10058880
call fcn.1004b3d0
mov eax, dword [0x1005c6b4]
cmp dword [eax], 0
je 0x1005878c
call fcn.1004f364
push 0
call sub.KERNEL32.DLL_ExitProcess_1
jmp 0x100587a7
mov eax, dword [0x1005c5f4]
mov edx, dword [0x1005c40c]
mov edx, dword [edx]
call fcn.10004578
or edx, 0xffffffff
mov eax, dword [0x1005c300]
call fcn.10057f20
test eax, eax
je 0x100587bf
push 0
call sub.KERNEL32.DLL_ExitProcess_1
call fcn.10058410
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100587e6
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.10004548
ret