Function at 0x478720
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56de22
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5cb464]
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 0x478767
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 0x478782
xor eax, eax
jmp 0x478da8
call fcn.004932e0
mov dword [ebp - 0x50], eax
call fcn.00492f80
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 0x478c90
mov ecx, dword [ebp + 0x10]
nop
cmp ecx, 0xffffffff
je 0x4787c8
lea eax, [ecx + 0x31]
cmp ebx, eax
jg 0x478c8d
cmp ebx, ecx
jl 0x478c77
shl ebx, 2
mov dword [ebp - 0x34], ebx
push dword [edx + ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.0041c100
test eax, eax
je 0x478dea
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.0040e980
test al, al
jne 0x47882d
test esi, esi
jne 0x47880f
xor ecx, ecx
jmp 0x478823
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478814
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040fb90
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.0040c430
mov ecx, dword [ebp - 0x4c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00476140
mov byte [ebp - 4], 2
call fcn.004932e0
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 0x478891
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
jmp 0x478969
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478896
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.0042fac0
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 0x478955
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x478955
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.0042fac0
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 0x478dcb
mov ecx, dword [ebp - 0xf0]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
push ecx
call fcn.00493310
push eax
push str.name
push edi
call fcn.00492f00
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
add esp, 0x10
cmp eax, ecx
je 0x478997
push eax
call fcn.004f50f5
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.00493310
push eax
push str.type
push edi
call fcn.00492f00
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 0x4789f1
xor eax, eax
mov dword [ebp - 0xf0], eax
jmp 0x478acd
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4789f6
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.0042fac0
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 0x478abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x478abc
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.0042fac0
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 0x478dcb
mov eax, dword [ebp - 0xf0]
mov edi, dword [ebp - 0x40]
push eax
call fcn.00493310
push eax
push str.child_junction_path
push edi
call fcn.00492f00
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
add esp, 0x10
cmp eax, ecx
je 0x478afb
push eax
call fcn.004f50f5
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 0x478b1e
xor eax, eax
mov dword [ebp - 0xf0], eax
jmp 0x478bfa
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478b23
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.0042fac0
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 0x478be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x478be9
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.0042fac0
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 0x478dcb
mov eax, dword [ebp - 0xf0]
mov edi, dword [ebp - 0x40]
push eax
call fcn.00493310
push eax
push str.icon
push edi
call fcn.00492f00
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
add esp, 0x10
cmp eax, ecx
je 0x478c28
push eax
call fcn.004f50f5
add esp, 4
push edi
push dword [ebp - 0x48]
call fcn.00492ed0
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 0x478c4f
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 0x478c6e
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 0x4787b0
mov esi, dword [ebp - 0x48]
push esi
mov esi, dword [ebp - 0x50]
push str.items
push esi
call fcn.00492f00
push esi
call fcn.00493810
mov edi, eax
add esp, 0x10
mov esi, edi
lea eax, [esi + 1]
nop
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x478cb0
mov ecx, dword [ebp - 0x54]
sub esi, eax
push esi
push edi
call fcn.004342a0
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 0x478ce0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.004342a0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0048fbe0
add esp, 8
mov edx, dword [ebp - 0x58]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x478d42
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x478d38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478dc6
push edx
push ecx
call fcn.0046956a
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.00435810
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 8
jb 0x478da3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478d99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478df4
push edx
push ecx
call fcn.0046956a
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.0046997a
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d5908
push 0x80
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0xf0]
call fcn.0042fb40
add esp, 0xc
call fcn.00424ce0
push 0x80004005
call fcn.00408fa0
call fcn.004d5908
int3