Function at 0x42e040
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc53
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x50bd24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x514], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b5de0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00427fa0
mov ecx, eax
call fcn.00428170
push eax
lea ecx, [ebp - 0x260]
call fcn.00415ba0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x4ec]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
mov dword [ebp - 0x500], eax
call fcn.0042b5f0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x50c], eax
test ecx, ecx
je 0x42e3c8
xor esi, esi
mov dword [ebp - 0x508], esi
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x4f4]
mov dword [ebp - 0x4f4], 0
push ecx
push eax
call fcn.0042b5b0
mov eax, dword [ebp - 0x4f4]
add esp, 8
test eax, eax
je 0x42e3a0
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
push dword [ebp - 0x4f4]
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d1d0
push dword [ebp - 0x4f4]
call fcn.0042a9d0
mov dword [ebp - 0x4fc], eax
xor edx, edx
mov eax, esi
mov edi, dword [ebp - 0x4f4]
div dword [ebp - 0x510]
mov ecx, SysReAllocString
add esp, 4
add eax, 0x55
mov dword [ebp - 0x4f0], eax
mov eax, dword [edi + 0x10]
sub ecx, eax
mov dword [ebp - 0x518], eax
cmp ecx, 4
jb 0x42e95f
cmp dword [edi + 0x14], 8
jb 0x42e1b5
mov edi, dword [edi]
lea ecx, [eax + 4]
mov dword [ebp - 0x248], 0
mov esi, 7
mov dword [ebp - 0x504], ecx
lea eax, [ebp - 0x248]
mov dword [ebp - 0x4f8], eax
cmp ecx, esi
jbe 0x42e21d
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x42e1f1
mov esi, SysReAllocString
jmp 0x42e1fc
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x248]
call fcn.0041a3a0
mov ecx, dword [ebp - 0x504]
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x234], esi
mov esi, dword [ebp - 0x518]
mov dword [ebp - 0x238], ecx
lea ecx, [eax + 8]
mov dword [eax], 0x96645220
mov dword [eax + 4], 0x4ef66587
lea eax, [esi + esi]
push eax
push edi
push ecx
call fcn.004b5860
mov eax, dword [ebp - 0x4f8]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi*2 + 8], cx
push dword [ebp - 0x4fc]
mov byte [ebp - 4], 1
push dword [ebp - 0x4f0]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x518], esp
push 0
push 0x4e1870
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0041a580
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x248]
mov edi, dword [ebp - 0x248]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4fc], eax
cmp eax, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
cmovae edx, edi
mov dword [ebp - 0x4f8], ecx
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x4f0], edx
mov dword [ebp - 0x504], eax
cmp eax, 8
jae 0x42e2fa
movups xmm0, xmmword [edx]
mov esi, 7
movups xmmword [ecx], xmm0
jmp 0x42e347
mov esi, eax
mov eax, SysReAllocString
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0041a3a0
mov ecx, dword [ebp - 0x4f8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x504]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x4f0]
push eax
call fcn.004b5860
mov ecx, dword [ebp - 0x4f8]
add esp, 0xc
mov eax, dword [ebp - 0x504]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], esi
mov ecx, dword [ebp - 0x514]
mov byte [ebp - 4], 1
call fcn.0042f480
mov ecx, dword [ebp - 0x4fc]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x42e39a
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x42e390
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e964
push ecx
push edi
call fcn.004b4077
add esp, 8
mov esi, dword [ebp - 0x508]
mov eax, dword [ebp - 0x50c]
add esi, 5
inc eax
mov dword [ebp - 0x508], esi
mov dword [ebp - 0x50c], eax
cmp eax, dword [ebp - 0x510]
jb 0x42e120
mov edi, dword [ebp - 0x514]
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 2
mov byte [ebp - 4], 3
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d450
cmp dword [ebp - 0x500], 0
je 0x42e422
cmp dword [ebp - 0x4d8], 0x3b6
jne 0x42e422
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE_TRAD_STR_XUNLEI9
mov ecx, 0x38
jmp 0x42e42c
mov ecx, 0x33
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE_STR_XUNLEI9
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a580
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d1d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp dword [ebp - 0x500], 0
je 0x42e49d
cmp dword [ebp - 0x4d8], 0x3b6
jne 0x42e49d
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE_TRAD
mov ecx, 0x29
jmp 0x42e4a7
mov ecx, 0x24
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a580
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d1d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
push 1
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d450
cmp dword [ebp - 0x500], 0
je 0x42e520
cmp dword [ebp - 0x4d8], 0x3b6
jne 0x42e520
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE_TRAD_STR_XUNLEI9
mov ecx, 0x38
jmp 0x42e52a
mov ecx, 0x33
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE_STR_XUNLEI9
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a580
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d1d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp dword [ebp - 0x500], 0
je 0x42e595
cmp dword [ebp - 0x4d8], 0x3b6
jne 0x42e595
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE_TRAD
mov ecx, 0x29
jmp 0x42e59f
mov ecx, 0x24
mov eax, str._SMPrograms_STR_XUNLEI_SOFTWARE
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a580
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d1d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
call fcn.00427fa0
add eax, 0x5c
cmp dword [eax + 0x14], 8
jb 0x42e5f9
mov eax, dword [eax]
push 0x4e38d8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x42e66d
push 1
push 1
push eax
push str._XLInstallProfiles
call fcn.0042c7c0
mov ecx, eax
call fcn.0042c5b0
push 1
push 0
push 0
push str._BhoProfilePath
call fcn.0042c7c0
mov ecx, eax
call fcn.0042c5b0
push eax
push 0x63
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4f0], esp
push 0
push 0x4e1870
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0041a580
mov byte [ebp - 4], 4
jmp 0x42e82a
call fcn.00427fa0
mov ecx, eax
call fcn.00428140
cmp eax, 1
jne 0x42e7ca
push 0x12
xor eax, eax
mov dword [ebp - 0x2cc], 0
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
call fcn.0041a580
push 0x3d
xor eax, eax
mov dword [ebp - 0x2b4], 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstalllfacc_is1
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
mov word [ebp - 0x2b4], ax
call fcn.0041a580
push 0xf
xor eax, eax
mov dword [ebp - 0x29c], 0
push str.InstallLocation
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
call fcn.0041a580
push 0xc
xor eax, eax
mov dword [ebp - 0x284], 0
push str._XLInstall
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 7
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
call fcn.0041a580
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 8
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0042ade0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2cc]
call fcn.0042b290
jmp 0x42e85a
push 1
push 1
push 0
push str._XLInstallProfiles
call fcn.0042c7c0
mov ecx, eax
call fcn.0042c5b0
push 1
push 0
push 0
push str._BhoProfilePath
call fcn.0042c7c0
mov ecx, eax
call fcn.0042c5b0
push eax
push 0x63
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4f0], esp
push 0
push 0x4e1870
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.0041a580
mov byte [ebp - 4], 9
sub esp, 0x18
mov ecx, esp
push 0x16
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
push 0x4e4d00
mov dword [ecx + 0x14], 7
call fcn.0041a580
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0042f480
push 0xc
push str._XLInstall
lea ecx, [ebp - 0x230]
call fcn.0041a580
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042cba0
lea eax, [ebp - 0x230]
push eax
call fcn.0042c7c0
mov ecx, eax
call fcn.0042d1d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x42e8e9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e8df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e964
push edx
push ecx
call fcn.004b4077
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x42e942
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e938
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e964
push edx
push ecx
call fcn.004b4077
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b42e4
mov esp, ebp
pop ebp
ret
call fcn.00403fb0
call fcn.004b905f
int3