Function at 0x407560
Capabilities:
Acquire debug privileges
Create thread
Get file attributes
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e16a
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5d2fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x228], edi
call fcn.0041bd9f
push dword [edi + 0xa8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [edi + 0x20]
call ebx
push dword [edi + 0xa8]
push 0
push 0x80
push dword [edi + 0x20]
call ebx
lea eax, [ebp - 0x264]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x250]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x250]
push 0
push 0
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x24c]
push 0x10
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x260]
push eax
push 0
push dword [ebp - 0x264]
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x254], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5dd724]
mov eax, 0x2e8ba2e9
sub ecx, dword [0x5dd71c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x1388
jae 0x407670
push 0x1388
call fcn.00416d00
xor ebx, ebx
lea eax, [edi + 0xb0]
mov dword [ebp - 0x224], ebx
nop
push 0
push 0
push dword [ebx*4 + 0x5b28a8]
mov ecx, eax
push ebx
push 1
call fcn.0041ead8
lea eax, [ebp - 0x244]
xorps xmm0, xmm0
push eax
push dword [edi + 0x20]
movups xmmword [ebp - 0x244], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
imul ecx, dword [ebp - 0x238], 0x67
mov eax, 0x12a91c93
mov edi, dword [ebp - 0x23c]
push 0x80
imul ecx
mov ecx, dword [ebp - 0x238]
sar edx, 5
mov eax, edx
shl ecx, 4
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x268], eax
mov eax, 0x12a91c93
imul ecx
mov ecx, edi
mov eax, 0x8487a2d1
sar edx, 5
mov ebx, edx
shl ecx, 5
add ecx, edi
shr ebx, 0x1f
add ebx, edx
imul ecx
mov eax, 0x8487a2d1
add edx, ecx
lea ecx, [edi + edi*2]
sar edx, 9
sub edi, ebx
mov esi, edx
shl ecx, 2
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x23c], edi
add dword [ebp - 0x240], esi
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x238]
sub eax, dword [ebp - 0x268]
mov dword [ebp - 0x238], eax
call fcn.00417988
mov esi, eax
add esp, 4
mov dword [ebp - 0x230], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x407785
push 0x80
push 0
push esi
call fcn.00551910
add esp, 0xc
mov ecx, esi
call fcn.00420f04
mov dword [esi], vtable.CListCtrl.0
jmp 0x407787
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov ebx, dword [ebp - 0x224]
mov edi, dword [ebp - 0x228]
movaps xmm0, xmmword [0x5b49b0]
movups xmmword [ebp - 0x278], xmm0
lea eax, [ebx + 0x44c]
mov dword [ebx*4 + 0x5dd5d8], esi
push eax
push edi
lea eax, [ebp - 0x278]
push eax
push 0x50800001
call fcn.0041e68c
mov eax, dword [ebp - 0x238]
mov edx, dword [ebp - 0x240]
sub eax, edx
mov ecx, dword [ebp - 0x244]
push 1
push eax
mov eax, dword [ebp - 0x23c]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebx*4 + 0x5dd5d8]
call fcn.00427f5f
mov eax, dword [ebx*4 + 0x5dd5d8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x174
push 0
push 0x1036
push dword [eax + 0x20]
call esi
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0x78
push 0
push 0x5afadc
push 0
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0x12c
push 0
push 0x5afae4
push 1
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0xb4
push 0
push 0x5afaf0
push 2
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0x82
push 0
push 0x5afafc
push 3
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0x82
push 0
push 0x5afb08
push 4
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0x64
push 0
push 0x5afb14
push 5
call fcn.0041ea35
push 0xffffffffffffffff
push 0
push 0
push 0x5afb1c
push 6
mov ecx, dword [ebx*4 + 0x5dd5d8]
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0
push 0
push str.BinPath
push 7
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0
push 0
push str.StartPath
push 8
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0
push 0
push str.Descrip
push 9
call fcn.0041ea35
mov ecx, dword [ebx*4 + 0x5dd5d8]
push 0xffffffffffffffff
push 0
push 0
push 0x5afb58
push 0xa
call fcn.0041ea35
inc ebx
lea eax, [edi + 0xb0]
mov dword [ebp - 0x224], ebx
cmp ebx, 9
jl 0x407680
mov ecx, dword [0x5dd5d8]
push 5
call fcn.0042815a
push 0
push 0
push 0x130c
push dword [edi + 0xd0]
call esi
mov eax, dword [edi + 0x20]
mov dword [0x5dd61c], eax
lea eax, [edi + 0x130]
test eax, eax
jne 0x407982
mov dword [0x5dd618], eax
jmp 0x40798a
mov eax, dword [eax + 0x20]
mov dword [0x5dd618], eax
lea eax, [edi + 0x230]
test eax, eax
jne 0x40799b
mov dword [0x5dd614], eax
jmp 0x4079a3
mov eax, dword [eax + 0x20]
mov dword [0x5dd614], eax
lea eax, [edi + 0x1b0]
test eax, eax
jne 0x4079b4
mov dword [0x5dd610], eax
jmp 0x4079bc
mov eax, dword [eax + 0x20]
mov dword [0x5dd610], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0
push eax
push 0
push 1
push 0x40b570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0
call fcn.0042853b
lea ecx, [ebp - 0x21c]
mov eax, dword [eax + 4]
push dword [eax + 0x48]
call fcn.00406840
mov dword [ebp - 4], 1
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x407a23
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov eax, 0x5af8f0
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x407a5d
movzx esi, ax
push esi
call fcn.00419421
test eax, eax
je 0x407a6f
push esi
push eax
lea ecx, [ebp - 0x22c]
call fcn.004066a0
jmp 0x407a6f
push 0
push 0x5af8f0
lea ecx, [ebp - 0x22c]
call fcn.00406bd0
mov byte [ebp - 4], 3
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x407a88
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x234], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x407ab1
push 0x80070057
call fcn.00407010
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x407ad4
push esi
lea ecx, [ebp - 0x21c]
call fcn.00406e60
mov eax, dword [ebp - 0x21c]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00556e6f
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x407aa7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
or ebx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], ecx
jl 0x408336
push 0x5af8ec
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x408336
sub ecx, eax
sar ecx, 1
js 0x408336
lea ecx, [ebp - 0x21c]
mov dword [0x5dd5fc], 1
call fcn.00416ec0
mov ecx, eax
call fcn.00416e10
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00405f10
mov esi, dword [ebp - 0x21c]
xor ebx, ebx
cmp word [esi], bx
je 0x407bb6
nop word [eax + eax]
movzx eax, word [esi]
push eax
push 0x5af354
call fcn.00551237
add esp, 8
test eax, eax
je 0x407b8d
test ebx, ebx
jne 0x407b8f
mov ebx, esi
jmp 0x407b8f
xor ebx, ebx
add esi, 2
cmp word [esi], 0
jne 0x407b70
test ebx, ebx
je 0x407bb0
sub ebx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
sar ebx, 1
push ebx
call fcn.00406020
mov esi, dword [ebp - 0x21c]
mov ecx, 0x5af8f0
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407be6
test dx, dx
je 0x407be2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407be6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407bc0
xor eax, eax
jmp 0x407beb
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4081da
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
lea eax, [ebp - 0x21c]
je 0x408193
push ecx
mov ecx, esp
push eax
mov dword [ebp - 0x230], ecx
call fcn.004069a0
lea ecx, [ebp - 0x224]
call fcn.00404280
add esp, 4
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.00406cf0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407c5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x234]
mov ecx, 0x5af8f0
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407c96
test dx, dx
je 0x407c92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407c96
add eax, 4
add ecx, 4
test dx, dx
jne 0x407c70
xor eax, eax
jmp 0x407c9b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x407cfe
push ecx
mov ecx, esp
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], ecx
call fcn.004069a0
lea ecx, [ebp - 0x224]
call fcn.00404710
add esp, 4
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.00406cf0
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407cf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x234]
mov ecx, 0x5af8f0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407d2b
test dx, dx
je 0x407d27
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407d2b
add eax, 4
add ecx, 4
test dx, dx
jne 0x407d05
xor eax, eax
jmp 0x407d30
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x407d50
lea eax, [ebp - 0x234]
mov ecx, 0x5dd728
push eax
call fcn.00416900
mov edi, dword [ebp - 0x234]
push 0x5c
push dword [ebp - 0x21c]
call fcn.005512e5
add esp, 8
test eax, eax
jne 0x407d69
or eax, 0xffffffff
jmp 0x407d71
sub eax, dword [ebp - 0x21c]
sar eax, 1
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405b70
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x224]
push 0x5c
push ebx
call fcn.005512e5
add esp, 8
test eax, eax
jne 0x407dac
or eax, 0xffffffff
jmp 0x407db0
sub eax, ebx
sar eax, 1
inc eax
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00405be0
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x220]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x268], edx
test edx, edx
jns 0x407def
push 0x80070057
call fcn.00407010
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x407e18
push edx
lea ecx, [ebp - 0x220]
call fcn.00406e60
mov esi, dword [ebp - 0x220]
mov edx, dword [ebp - 0x268]
lea eax, [edx + 1]
push eax
push esi
call fcn.00556e6f
mov eax, dword [ebp - 0x268]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x407aa7
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x230], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 0
push eax
lea ecx, [ebp - 0x228]
call fcn.00406840
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x268], ecx
test ecx, ecx
jns 0x407e98
push 0x80070057
call fcn.00407010
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, dword [ebp - 0x268]
or ecx, edx
jge 0x407ec4
push dword [ebp - 0x268]
lea ecx, [ebp - 0x228]
call fcn.00406e60
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x268]
inc ecx
push ecx
push eax
call fcn.00556e6f
mov eax, dword [ebp - 0x228]
add esp, 8
mov ecx, dword [ebp - 0x268]
cmp ecx, dword [eax - 8]
jg 0x407aa7
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x228]
mov word [eax + ecx*2], dx
mov ecx, str.desktop
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f26
test dx, dx
je 0x407f22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f26
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f00
xor eax, eax
jmp 0x407f2b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.system32
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.syswow64
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push 0x5afb74
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.drivers
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push 0x5afb94
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.program_files__x86_
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.appdata
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.roaming
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.local
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.common_files
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push str.users
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push 0x5afc2c
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x220]
push 0x5af8f0
push eax
call fcn.00405a50
add esp, 8
test al, al
je 0x4080ee
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00416a80
add esp, 8
test al, al
je 0x4080ee
push 0x5af8ec
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00406a20
add esp, 0xc
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xa
call fcn.00406cf0
lea ecx, [ebp - 0x268]
call fcn.004070b0
jmp 0x40813b
push 0x5af8ec
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00406a20
add esp, 0xc
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xb
call fcn.00406cf0
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40813b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40815d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40817b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4081da
mov ecx, dword [ebx]
push ebx
jmp 0x4081d5
push 0x5af8ec
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00406a20
add esp, 0xc
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xc
call fcn.00406cf0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4081da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x22c]
mov ecx, 0x5af8f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40820b
test dx, dx
je 0x408207
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40820b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4081e5
xor eax, eax
jmp 0x408210
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4082c1
mov eax, dword [0x5dd738]
lea ecx, [ebp - 0x22c]
cmp ecx, eax
jae 0x408276
mov edx, ecx
mov ecx, dword [0x5dd734]
cmp ecx, edx
ja 0x408276
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [0x5dd73c]
jne 0x40825d
push ecx
mov ecx, 0x5dd734
call fcn.00416ba0
mov eax, dword [0x5dd738]
mov ecx, dword [0x5dd734]
mov dword [ebp - 0x224], eax
lea ecx, [ecx + esi*4]
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4082b5
jmp 0x4082a8
cmp eax, dword [0x5dd73c]
jne 0x40828e
push ecx
mov ecx, 0x5dd734
call fcn.00416ba0
mov eax, dword [0x5dd738]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4082b5
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
call fcn.004069a0
mov eax, dword [0x5dd738]
add eax, 4
mov byte [ebp - 4], 4
mov dword [0x5dd738], eax
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x4082d6
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push edi
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x224]
push dword [ebp - 0x22c]
push 0x5afc34
push eax
call fcn.00406ff0
mov esi, dword [ebp - 0x224]
add esp, 0x10
push esi
push dword [0x5dd61c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40839e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40839e
cmp dword [eax - 0xc], 0
jl 0x40841d
push str.delsrv
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x40841d
sub ecx, eax
sar ecx, 1
js 0x40841d
push 0x5afc7c
push dword [0x5dd61c]
mov dword [0x5dd5d4], 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp - 0x228]
mov ecx, esi
call fcn.00413ef0
mov ecx, esi
call fcn.004144a0
mov ecx, esi
call fcn.00414b60
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4083b9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4083da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4083fc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e73a
mov esp, ebp
pop ebp
ret
cmp dword [0x5dd604], 0
jne 0x408454
cmp dword [eax - 0xc], 0
jl 0x408383
push str.delfile
push eax
call fcn.00550fb4
add esp, 8
test eax, eax
je 0x408383
sub eax, dword [ebp - 0x21c]
sar eax, 1
js 0x408383
mov esi, dword [ebp - 0x228]
mov ecx, esi
mov dword [0x5dd604], 1
call fcn.004138d0
push 0x5afcb4
push dword [0x5dd61c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x408389