Function at 0x584dc0
Capabilities:
Accept command line arguments
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2dd6
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x606040]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
mov eax, dword [0x606040]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
call fcn.0040a74d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x584e27
push 0x80004005
call fcn.00401e70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x680], 0
call fcn.0040a74d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x584e5c
push 0x80004005
call fcn.00401e70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x680], 2
lea edx, [esi - 0x10]
mov eax, dword [edx]
or edi, 0xffffffff
cmp dword [edx + 4], 0
mov dword [esp + 0x14], eax
je 0x584ee6
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x584ec3
cmp dword [esi - 8], 0
jge 0x584eb5
push 0x80070057
call fcn.00401e70
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x584ee6
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x584ed6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
cmp dword [ebx - 0xc], 0
lea edx, [ebx - 0x10]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
je 0x584f3f
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x584f1c
cmp dword [ebx - 8], 0
jge 0x584f0e
push 0x80070057
call fcn.00401e70
xor eax, eax
mov dword [ebx - 0xc], 0
mov word [ebx], ax
jmp 0x584f3f
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x584f2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push dword [esp + 0x38]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
cmp ecx, 1
jne 0x584f72
mov ecx, str.PEBootByDoubleClick
call fcn.0058fbc0
jmp 0x58595d
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00581da0
test al, al
jne 0x58595d
mov eax, 1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x38], eax
jle 0x585282
jmp 0x584fa0
mov ecx, dword [esp + 0x34]
push dword [ecx + eax*4]
lea ecx, [esp + 0x14]
call fcn.00402cd0
mov byte [esp + 0x680], 3
mov eax, dword [esp + 0x10]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x584eab
movzx edx, word [eax]
cmp edx, 0x2d
je 0x58506a
test edi, edi
js 0x584eab
cmp edx, 0x2f
je 0x58506a
push 0x208
lea eax, [esp + 0x260]
push 0
push eax
call fcn.00539180
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x268]
add esp, 0xc
push 0x104
push eax
mov eax, dword [esp + 0x28]
push dword [ecx + eax*4]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x585048
lea ecx, [esp + 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x585027
sub ecx, edx
lea eax, [esp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403930
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.004084c0
mov byte [esp + 0x680], 2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
jmp 0x585256
mov ecx, 1
mov dword [esp + 0x14], ecx
cmp edi, ecx
jge 0x585081
mov ecx, edi
mov dword [esp + 0x14], ecx
test edi, edi
jle 0x5850df
sub edi, ecx
cmp dword [eax - 4], 1
jle 0x58509d
push dword [eax - 0xc]
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [edi*2 + 2]
push edx
lea ecx, [eax + ecx*2]
push ecx
push edx
push eax
call fcn.00535e23
push eax
call fcn.004026c0
add esp, 0x14
test edi, edi
js 0x584eab
mov eax, dword [esp + 0x10]
cmp edi, dword [eax - 8]
jg 0x584eab
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov word [eax + edi*2], cx
mov eax, dword [esp + 0x10]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x584eab
movzx ecx, word [eax]
mov dword [esp + 0x1c], ecx
mov ecx, 1
mov dword [esp + 0x14], ecx
cmp edi, ecx
jge 0x585108
mov ecx, edi
mov dword [esp + 0x14], ecx
test edi, edi
jle 0x585162
sub edi, ecx
cmp dword [eax - 4], 1
jle 0x585124
push dword [eax - 0xc]
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [edi*2 + 2]
push edx
lea ecx, [eax + ecx*2]
push ecx
push edx
push eax
call fcn.00535e23
push eax
call fcn.004026c0
add esp, 0x14
test edi, edi
js 0x584eab
mov eax, dword [esp + 0x10]
cmp edi, dword [eax - 8]
jg 0x584eab
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov word [eax + edi*2], cx
push ecx
lea ecx, [esp + 0x14]
call fcn.004083e0
push dword [esp + 0x1c]
call fcn.00536f0c
movzx eax, ax
add esp, 4
sub eax, 0x64
je 0x5851eb
sub eax, 2
mov eax, dword [esp + 0x10]
jne 0x58524b
lea edx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp edx, edi
je 0x58524b
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x5851d8
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x5851d8
push edx
call fcn.004039f0
add esp, 4
mov dword [esp + 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x5851cf
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
jmp 0x585247
push dword [eax - 0xc]
lea ecx, [esp + 0x28]
push eax
call fcn.00403930
mov esi, dword [esp + 0x24]
jmp 0x585247
mov eax, dword [esp + 0x10]
lea edi, [ebx - 0x10]
lea edx, [eax - 0x10]
cmp edx, edi
je 0x58524b
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x585236
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x585236
push edx
call fcn.004039f0
add esp, 4
mov dword [esp + 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x58522d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
lea ebx, [eax + 0x10]
mov dword [esp + 0x3c], ebx
jmp 0x585247
push dword [eax - 0xc]
lea ecx, [esp + 0x40]
push eax
call fcn.00403930
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x680], 2
lea edx, [eax - 0x10]
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58526f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x38]
jl 0x584fa0
push str.SU_Exec
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
je 0x5852a6
push str.SU_Document
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x5852c7
mov eax, dword [esp + 0x18]
push str.SU_Exec
push esi
mov byte [eax + 0x4b90], 1
call fcn.00535e6f
add esp, 8
test eax, eax
je 0x58595d
cmp dword [esi - 0xc], 0
jne 0x5852e1
push 5
push str.Other
lea ecx, [esp + 0x2c]
call fcn.00403930
mov esi, dword [esp + 0x24]
cmp dword [ebx - 0xc], 0
je 0x5853d8
push ebx
lea eax, [esp + 0x468]
push 0x104
push eax
call fcn.005363c5
add esp, 0xc
mov dword [esp + 0x10], 0
lea eax, [esp + 0x464]
push str.r_ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00536c9e
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x585442
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x20], 0
push 0x104
push eax
call fcn.00536f1d
add esp, 0xc
test eax, eax
je 0x5853cc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push 0x5de32c
push eax
call fcn.00536fd9
add esp, 0xc
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push eax
call fcn.00402cd0
lea eax, [esp + 0x14]
mov byte [esp + 0x680], 4
push eax
lea ecx, [esp + 0x2c]
call fcn.004084c0
mov byte [esp + 0x680], 2
mov ecx, edi
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5853b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x10]
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.00536f1d
add esp, 0xc
test eax, eax
jne 0x585352
push dword [esp + 0x10]
call fcn.0053711a
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 1
jb 0x58595d
push str.SU_Document
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
je 0x58541f
push str.Other
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x5855c6
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x4b2c], 0xa
jl 0x58544e
push 0
mov edx, 0x104900
mov ecx, eax
call fcn.00574b30
add esp, 4
jmp 0x58595d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x58595d
mov eax, dword [esp + 0x28]
mov edi, eax
cmp eax, dword [esp + 0x2c]
je 0x5854c2
lea ebx, [ebx]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [esp + 0x24]
call fcn.00402cd0
mov byte [esp + 0x680], 5
push str..pdf
push dword [esp + 0x24]
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x585526
mov byte [esp + 0x680], 2
or ecx, 0xffffffff
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5854b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [esp + 0x2c]
jne 0x585460
sub esp, 0xc
lea eax, [esp + 0x34]
mov ecx, esp
push eax
call fcn.00403070
mov ecx, dword [esp + 0x24]
call fcn.00581260
test al, al
jne 0x58595d
push str.SU_Document
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x5855c6
mov edi, dword [esp + 0x1c]
cmp edi, 1
jbe 0x5855c6
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 0x4b30]
push eax
call fcn.00574a70
add esp, 4
test edi, edi
jne 0x585568
push str.invalid_vector_T__subscript
call fcn.00569015
mov ecx, dword [esp + 0x18]
mov edx, 0x103d00
push 0
call fcn.00574b30
mov byte [esp + 0x684], 2
add esp, 4
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58595d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x58595d
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.004039f0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x680], 6
call fcn.00403790
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.004084c0
mov byte [esp + 0x680], 2
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5855c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041a343
test eax, eax
je 0x5855d8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x5855da
xor eax, eax
xor edi, edi
mov dword [esp + 0x20], edi
test eax, eax
je 0x5855f2
push edi
mov ecx, eax
call fcn.0041dd55
mov edi, eax
mov dword [esp + 0x20], eax
push str.SU_Document
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
je 0x5856db
push str.SU_Scan
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x58562b
test edi, edi
je 0x5856db
cmp dword [edi + 0x20], eax
je 0x5856db
push str.Other
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
je 0x5856db
push str.SU_Scan
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x585952
test edi, edi
je 0x585952
mov eax, dword [edi + 0x20]
test eax, eax
je 0x585952
sub esp, 8
lea ecx, [esp + 0x5c]
call fcn.005788f0
push 2
lea ecx, [esp + 0x58]
mov byte [esp + 0x684], 9
call fcn.005781a0
push edi
lea ecx, [esp + 0x58]
call fcn.00578250
push 1
sub esp, 0xc
lea eax, [esp + 0x38]
mov ecx, esp
push eax
call fcn.00403070
lea ecx, [esp + 0x64]
call fcn.005781d0
lea ecx, [esp + 0x54]
call fcn.00577fa0
mov byte [esp + 0x680], 2
lea ecx, [esp + 0x54]
cmp eax, 1
je 0x5856d1
call fcn.00578820
jmp 0x58595d
call fcn.00578820
jmp 0x585952
mov ecx, 0x5dbf80
call fcn.0042bb70
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x58589d
mov eax, dword [esp + 0x18]
mov ecx, edi
inc dword [eax + 0x4bec]
push dword [eax + 0x4bec]
call fcn.0056d310
call fcn.0041a343
test eax, eax
je 0x58571e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov ecx, eax
jmp 0x585720
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x40]
push edx
push ecx
mov dword [esp + 0x48], eax
mov ecx, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [edi]
push 0x40cf0000
push 0x82
mov dword [esp + 0x50], 0x5deaa0
call dword [eax + 0x164]
push 1
push 0
mov ecx, edi
call fcn.00414644
mov eax, dword [esp + 0x18]
mov ecx, edi
push dword [eax + 0x4b30]
call fcn.0056c550
mov eax, dword [esp + 0x18]
mov ecx, eax
inc dword [eax + 0x4b2c]
call fcn.00587a30
sub esp, 8
lea ecx, [esp + 0x5c]
call fcn.005788f0
lea eax, [esp + 0x118]
mov byte [esp + 0x680], 7
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
call edi
mov eax, dword [esp + 0x110]
lea ecx, [esp + 0x110]
mov dword [esp + 0x148], 1
call dword [eax + 0x14]
lea eax, [esp + 0x118]
push eax
call edi
mov eax, dword [esp + 0x110]
lea ecx, [esp + 0x110]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x140], edi
call dword [eax + 0x14]
push 0
sub esp, 0xc
lea eax, [esp + 0x38]
mov ecx, esp
push eax
call fcn.00403070
lea ecx, [esp + 0x64]
call fcn.005781d0
push str.SU_Document
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x585822
mov eax, dword [esp + 0x18]
mov byte [eax + 0x4bb5], 1
lea ecx, [esp + 0x54]
call fcn.00577fa0
cmp eax, 1
je 0x585877
mov ecx, edi
mov byte [edi + 0x4d8], 0
call fcn.0056c330
mov eax, dword [esp + 0x20]
test eax, eax
je 0x585856
cmp dword [eax + 0x20], 0
je 0x585856
mov ecx, dword [esp + 0x18]
push eax
call fcn.004081b0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x54]
mov byte [esp + 0x680], 2
mov byte [eax + 0x4bb5], 0
call fcn.00578820
jmp 0x58595d
sub esp, 0xc
lea eax, [esp + 0x34]
mov ecx, esp
push eax
call fcn.00403070
push edi
call fcn.00581380
lea ecx, [esp + 0x54]
mov byte [esp + 0x680], 2
call fcn.00578820
push str.SU_Document
push esi
call fcn.00535e6f
add esp, 8
test eax, eax
jne 0x585952
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00581500
mov eax, dword [0x6157fc]
add eax, 0xfffffff0
push eax
call fcn.004039f0
add esp, 4
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov byte [esp + 0x680], 8
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x585907
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402400
mov edi, dword [esp + 0x10]
push str.PETEMP_LISTTEXT
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [edi - 4], 1
jle 0x585929
push dword [edi - 0xc]
lea ecx, [esp + 0x14]
call fcn.00402570
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0058fae0
add edi, 0xfffffff0
mov byte [esp + 0x680], 2
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x585952
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
mov byte [eax + 0x4bb5], 0
lea ecx, [esp + 0x28]
call fcn.00403890
lea edx, [ebx - 0x10]
mov byte [esp + 0x680], 0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58598a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x680], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x5859ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.00535334
mov esp, ebp
pop ebp
ret 4