Function at 0x46e660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567b72
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5c3484]
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 dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 8]
mov eax, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], edi
cmp dword [ecx + 0x14], 0x10
jb 0x46e6a7
mov eax, dword [ecx]
mov dword [ecx + 0x10], 0
mov byte [eax], 0
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, 4
jae 0x46e6c2
xor eax, eax
jmp 0x46ece8
call fcn.00489fe0
mov dword [ebp - 0x50], eax
call fcn.00489c90
mov ecx, dword [edi + 4]
xor ebx, ebx
mov edx, dword [edi]
mov esi, eax
sub ecx, edx
mov dword [ebp - 0x48], esi
sar ecx, 2
mov dword [ebp - 0x44], ebx
test ecx, ecx
je 0x46ebd0
mov ecx, dword [ebp + 0x10]
nop
cmp ecx, 0xffffffff
je 0x46e708
lea eax, [ecx + 0x31]
cmp ebx, eax
jg 0x46ebcd
cmp ebx, ecx
jl 0x46ebb7
shl ebx, 2
mov dword [ebp - 0x34], ebx
push dword [edx + ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.0041acd0
test eax, eax
je 0x46ed2a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0040da50
test al, al
jne 0x46e76d
test esi, esi
jne 0x46e74f
xor ecx, ecx
jmp 0x46e763
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e754
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040ec60
mov eax, dword [edi]
mov dword [ebp - 0x14], 0
push ecx
mov esi, esp
mov dword [ebp - 4], 1
mov eax, dword [eax + ebx]
sub eax, 0x10
mov dword [ebp - 0x30], esi
push eax
call fcn.0040b500
mov ecx, dword [ebp - 0x4c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046c080
mov byte [ebp - 4], 2
call fcn.00489fe0
mov esi, dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0xec]
mov dword [ebp - 0xf0], eax
test esi, esi
jne 0x46e7d1
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
jmp 0x46e8a9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e7d6
sub ecx, edx
lea eax, [ebp - 0xec]
sar ecx, 1
push 0x80
push eax
lea eax, [ebp - 0xf0]
lea ebx, [ecx + 1]
lea edi, [ebx*4]
mov dword [ebp - 0x30], ebx
push edi
push eax
call fcn.0042e210
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xf0]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push esi
push 0
push 0xfde9
call edi
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x46e895
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46e895
mov ebx, dword [ebp - 0x30]
push 0
push 0
push 0
push 0
push ebx
push esi
push 0
push 0xfde9
call edi
mov edi, eax
lea eax, [ebp - 0xec]
push 0x80
push eax
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0042e210
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xf0]
push ebx
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x46ed0b
mov ecx, dword [ebp - 0xf0]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
push ecx
call fcn.0048a010
push eax
push str.name
push edi
call fcn.00489c10
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
add esp, 0x10
cmp eax, ecx
je 0x46e8d7
push eax
call fcn.004ea545
add esp, 4
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
push dword [eax + ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
mov ecx, str.folder
mov eax, str.file
cmove ecx, eax
push ecx
call fcn.0048a010
push eax
push str.type
push edi
call fcn.00489c10
mov eax, dword [ebp - 0x38]
add esp, 0x10
mov eax, dword [eax]
mov ebx, dword [eax + ebx]
lea eax, [ebp - 0xec]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xf0], eax
test ebx, ebx
jne 0x46e931
xor eax, eax
mov dword [ebp - 0xf0], eax
jmp 0x46ea0d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e936
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0042e210
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xf0]
mov edi, dword [ebp - 0x30]
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x46e9fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46e9fc
mov ebx, dword [ebp - 0x34]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0xec]
push 0x80
push eax
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0042e210
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xf0]
push dword [ebp - 0x30]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x46ed0b
mov eax, dword [ebp - 0xf0]
mov edi, dword [ebp - 0x40]
push eax
call fcn.0048a010
push eax
push str.child_junction_path
push edi
call fcn.00489c10
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
add esp, 0x10
cmp eax, ecx
je 0x46ea3b
push eax
call fcn.004ea545
add esp, 4
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0xec]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xf0], eax
test ebx, ebx
jne 0x46ea5e
xor eax, eax
mov dword [ebp - 0xf0], eax
jmp 0x46eb3a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ea63
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0042e210
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xf0]
mov edi, dword [ebp - 0x30]
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x46eb29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46eb29
mov ebx, dword [ebp - 0x34]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0xec]
push 0x80
push eax
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0042e210
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xf0]
push dword [ebp - 0x30]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x46ed0b
mov eax, dword [ebp - 0xf0]
mov edi, dword [ebp - 0x40]
push eax
call fcn.0048a010
push eax
push str.icon
push edi
call fcn.00489c10
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
add esp, 0x10
cmp eax, ecx
je 0x46eb68
push eax
call fcn.004ea545
add esp, 4
push edi
push dword [ebp - 0x48]
call fcn.00489be0
mov edx, dword [ebp - 0x14]
add esp, 8
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46eb8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46ebae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x44]
mov eax, dword [edi + 4]
inc ebx
mov edx, dword [edi]
sub eax, edx
sar eax, 2
mov dword [ebp - 0x44], ebx
cmp ebx, eax
jb 0x46e6f0
mov esi, dword [ebp - 0x48]
push esi
mov esi, dword [ebp - 0x50]
push str.items
push esi
call fcn.00489c10
push esi
call fcn.0048a510
mov edi, eax
add esp, 0x10
mov esi, edi
lea eax, [esi + 1]
nop
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x46ebf0
mov ecx, dword [ebp - 0x54]
sub esi, eax
push esi
push edi
call fcn.00432fa0
mov ecx, edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ec20
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00432fa0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00486b80
add esp, 8
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x46ec82
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46ec78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ed06
push edx
push ecx
call fcn.0045f7ba
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x5c], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push str.GetPathList:_s
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
call fcn.00434480
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 8
jb 0x46ece3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ecd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ed34
push edx
push ecx
call fcn.0045f7ba
add esp, 8
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.0045fbca
mov esp, ebp
pop ebp
ret 0xc
call fcn.004cad68
push 0x80
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0xf0]
call fcn.0042e290
add esp, 0xc
call fcn.00423800
push 0x80004005
call fcn.00408070
call fcn.004cad68
int3