Function at 0x4105d0
Capabilities:
Create process on windows
Delete registry key
Get common file path
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46bfd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
test eax, eax
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0x24], ebx
je 0x4106a4
mov ecx, dword [ebx + 0xc]
push 0x4708d8
push 0x771
call fcn.004515d0
push eax
lea ecx, [esp + 0x4c]
call fcn.00405970
mov dword [esp + 0x40], 0
call fcn.004178f0
mov esi, dword [esp + 0x48]
mov edx, dword [eax]
push 7
push 0x24
push esi
mov ecx, eax
call dword [edx + 0xa4]
cmp eax, 7
jne 0x410679
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x410661
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410661
push esi
call fcn.00457c3f
add esp, 4
pop esi
mov eax, 0x80000029
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
mov eax, dword [0x4800dc]
lea ecx, [esi - 0xc]
cmp ecx, eax
mov dword [esp + 0x40], 0xffffffff
je 0x4106a4
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4106a4
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [eax + 0x54]
mov esi, dword [ecx]
cmp esi, ecx
push edi
je 0x4106d7
mov edi, dword [esi + 8]
mov ecx, edi
call fcn.00435b10
mov ecx, edi
call fcn.00435860
mov eax, dword [ebx + 0x1cc]
mov esi, dword [esi]
mov ecx, dword [eax + 0x54]
add eax, 0x50
cmp esi, ecx
jne 0x4106b4
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [eax + 0x44]
mov esi, dword [ecx]
cmp esi, ecx
je 0x410702
mov ecx, dword [esi + 8]
push 0
call fcn.0042d430
mov eax, dword [ebx + 0x1cc]
mov esi, dword [esi]
mov ecx, dword [eax + 0x44]
add eax, 0x40
cmp esi, ecx
jne 0x4106e6
push ebp
mov ebp, dword [0x4800d8]
mov dword [esp + 0x1c], ebp
push 0x4708a4
lea eax, [ebx + 0x198]
push eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x54], 1
call fcn.0040aa70
push str.XMLS
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x54], 2
call fcn.0040aa70
push 0x4708a4
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x54], 3
call fcn.0040aa70
mov edx, dword [ebx + 0x1cc]
add edx, 4
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x54], 4
call fcn.0040a9c0
push str..xml
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x54], 5
call fcn.0040aa70
mov edi, eax
mov esi, dword [edi]
cmp ebp, esi
mov byte [esp + 0x48], 6
je 0x410860
mov ecx, ebp
mov eax, dword [ecx - 0xc]
test eax, eax
lea ebp, [ecx - 0xc]
mov dword [esp + 0x34], ebp
jge 0x4107b0
lea edx, [ecx - 0xc]
cmp edx, dword [0x4800dc]
jne 0x4107b7
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x410830
cmp eax, 1
mov ebp, dword [esi - 8]
jg 0x4107c8
mov eax, dword [esp + 0x1c]
cmp ebp, dword [eax - 4]
jle 0x410808
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x4800dc]
add ecx, 0xfffffff4
cmp ecx, eax
je 0x4107fa
mov edi, dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4107f0
push edi
call fcn.00457c3f
add esp, 4
mov edx, dword [0x4800d8]
mov dword [esp + 0x1c], edx
push ebp
lea ecx, [esp + 0x20]
call fcn.004039b0
test eax, eax
je 0x410860
lea eax, [ebp + 1]
cmp eax, ebp
jb 0x410823
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [eax - 8], ebp
mov byte [eax + ebp], 0
jmp 0x410860
mov eax, dword [0x4800dc]
add ecx, 0xfffffff4
cmp ecx, eax
je 0x410850
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410850
push ebp
call fcn.00457c3f
add esp, 4
mov edi, dword [edi]
mov dword [esp + 0x1c], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x50]
mov edx, dword [0x4800dc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410891
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x410891
mov eax, dword [esp + 0x50]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4108bc
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4108bc
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4108e7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4108e7
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410912
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x410912
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x48], 1
je 0x410942
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x410942
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
call fcn.004178f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
push 0
push 0
push ecx
mov ecx, eax
call dword [edx + 0x20]
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [eax + 0x60]
mov esi, dword [ecx]
cmp esi, ecx
je 0x410980
mov ecx, dword [esi + 8]
call fcn.00432750
mov eax, dword [ebx + 0x1cc]
mov esi, dword [esi]
mov ecx, dword [eax + 0x60]
add eax, 0x5c
cmp esi, ecx
jne 0x410966
mov eax, dword [ebx + 0x1cc]
mov ecx, dword [eax + 0x6c]
mov esi, dword [ecx]
cmp esi, ecx
je 0x4109aa
nop
mov ecx, dword [esi + 8]
call fcn.0042f7d0
mov eax, dword [ebx + 0x1cc]
mov esi, dword [esi]
mov ecx, dword [eax + 0x6c]
add eax, 0x68
cmp esi, ecx
jne 0x410990
call fcn.004178f0
mov edx, dword [0x4800d8]
mov ebx, eax
mov eax, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall
shr eax, 0x10
test eax, eax
mov dword [esp + 0x28], edx
jne 0x4109db
mov ecx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall
movzx eax, cx
push eax
lea ecx, [esp + 0x2c]
call fcn.00405250
jmp 0x410a1a
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x410a1a
push esi
lea ecx, [esp + 0x2c]
call fcn.004039b0
test eax, eax
je 0x410a1a
lea edx, [esi + 1]
cmp edx, esi
jb 0x410a1a
mov edi, dword [esp + 0x28]
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [ebx]
push 0xf003f
push eax
mov ecx, ebx
mov byte [esp + 0x50], 7
call dword [edx + 0x48]
mov esi, eax
test esi, esi
je 0x410a4a
push 0x470c08
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x4c]
mov ecx, dword [esp + 0x2c]
push 0
call fcn.0040eab0
mov eax, dword [0x4800d8]
mov ebx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov edi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 0xd
call fcn.004042d0
test eax, eax
mov ebp, dword [esp + 0x18]
jne 0x410a95
xor eax, eax
jmp 0x410aa5
mov dword [ebp - 8], 0x104
mov byte [ebp + 0x104], 0
mov eax, ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp - 0xc]
cmp eax, 1
lea esi, [ebp - 0xc]
jle 0x410b1d
mov eax, dword [0x4800dc]
add ebp, 0xfffffff4
cmp ebp, eax
je 0x410ae5
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410adc
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004039b0
test eax, eax
mov ebp, dword [esp + 0x18]
je 0x410b1d
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 4]
inc ecx
inc eax
cmp eax, ecx
jb 0x410b1d
mov edx, ecx
shr ecx, 2
add esi, 0xc
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x50]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
push 0x4708a4
lea ecx, [esp + 0x1c]
mov byte [eax + ebp], 0
call fcn.00409b10
push str.DelSelf.bat
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040aa70
mov ebp, eax
mov esi, dword [ebp]
cmp ebx, esi
mov byte [esp + 0x48], 0xe
je 0x410c1c
mov eax, dword [ebx - 0xc]
test eax, eax
lea edi, [ebx - 0xc]
jge 0x410b76
mov ecx, dword [0x4800dc]
lea edx, [ebx - 0xc]
cmp edx, ecx
jne 0x410b7d
mov ecx, dword [esi - 0xc]
test ecx, ecx
jge 0x410be7
cmp eax, 1
mov ebp, dword [esi - 8]
jg 0x410b8a
cmp ebp, dword [ebx - 4]
jle 0x410bc5
mov eax, dword [0x4800dc]
add ebx, 0xfffffff4
cmp ebx, eax
je 0x410bb3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410baa
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x24], eax
push ebp
lea ecx, [esp + 0x28]
call fcn.004039b0
test eax, eax
mov ebx, dword [esp + 0x24]
je 0x410c18
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x410bde
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], ebp
mov byte [ebx + ebp], 0
jmp 0x410c18
mov eax, dword [0x4800dc]
add ebx, 0xfffffff4
cmp ebx, eax
je 0x410c07
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410c07
push edi
call fcn.00457c3f
add esp, 4
mov ebx, dword [ebp]
lea eax, [ebx - 0xc]
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
mov edx, dword [0x4800dc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x48], 0xd
je 0x410c52
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x410c52
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x410da6
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410c99
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x410c99
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410cbd
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x410cbd
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea edx, [edi - 0xc]
cmp edx, eax
je 0x410cdc
add edi, 0xfffffff4
push edi
call ebp
test eax, eax
jg 0x410cdc
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410d00
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x410d00
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410d24
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x410d24
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [ebx - 0xc]
cmp eax, ecx
je 0x410d44
add ebx, 0xfffffff4
push ebx
call ebp
test eax, eax
jg 0x410d44
push ebx
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410d68
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x410d68
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410d8c
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x410d8c
push esi
call fcn.00457c3f
add esp, 4
pop ebp
pop edi
pop esi
mov eax, SysReAllocStringLen
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
push str.:repeat_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [edi - 0xc]
mov ebp, eax
cmp dword [esi], 1
jg 0x410dc0
cmp ebp, dword [edi - 4]
jle 0x410dfb
mov eax, dword [0x4800dc]
add edi, 0xfffffff4
cmp edi, eax
je 0x410de9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410de0
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x50], eax
push ebp
lea ecx, [esp + 0x54]
call fcn.004039b0
test eax, eax
mov edi, dword [esp + 0x50]
je 0x410e26
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x410e1f
mov edi, dword [esp + 0x50]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov esi, str.:repeat_r_n
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x50]
mov dword [edi - 8], ebp
mov byte [edi + ebp], 0
mov eax, dword [edi - 8]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.00403ab0
mov eax, dword [esp + 0x2c]
push str.Setup.exe
add eax, 0x198
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040aa70
mov ebp, eax
mov eax, dword [esp + 0x10]
mov esi, dword [ebp]
cmp eax, esi
mov byte [esp + 0x48], 0xf
mov edi, eax
je 0x410f1a
mov eax, dword [edi - 0xc]
test eax, eax
mov ecx, dword [0x4800dc]
lea ebx, [edi - 0xc]
jge 0x410e7c
lea edx, [edi - 0xc]
cmp edx, ecx
jne 0x410e83
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x410eee
cmp eax, 1
mov ebp, dword [esi - 8]
jg 0x410e90
cmp ebp, dword [edi - 4]
jle 0x410ec6
add edi, 0xfffffff4
cmp edi, ecx
je 0x410eb4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410eab
push ebx
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004039b0
test eax, eax
mov edi, dword [esp + 0x10]
je 0x410f1a
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x410ee5
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov dword [edi - 8], ebp
mov byte [edi + ebp], 0
jmp 0x410f1a
add edi, 0xfffffff4
cmp edi, ecx
je 0x410f09
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410f09
push ebx
call fcn.00457c3f
add esp, 4
mov edi, dword [ebp]
lea eax, [edi - 0xc]
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x30]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x48], 0xd
je 0x410f4e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410f4e
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
push 0x104
lea ecx, [esp + 0x18]
call fcn.004042d0
test eax, eax
mov ebp, dword [esp + 0x14]
jne 0x410f68
xor eax, eax
jmp 0x410f78
mov dword [ebp - 8], 0x104
mov byte [ebp + 0x104], 0
mov eax, ebp
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [ebp - 0xc]
cmp eax, 1
lea esi, [ebp - 0xc]
jle 0x410fed
mov eax, dword [0x4800dc]
add ebp, 0xfffffff4
cmp ebp, eax
je 0x410fb9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410fb0
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.004039b0
test eax, eax
mov ebp, dword [esp + 0x14]
je 0x410fed
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 4]
inc ecx
inc edx
cmp edx, ecx
jb 0x410fed
mov eax, ecx
shr ecx, 2
add esi, 0xc
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
lea ecx, [esp + 0x54]
push str.del__s__q__f__s_r_n
mov dword [ebp - 8], eax
push ecx
mov byte [eax + ebp], 0
call fcn.00405ab0
mov eax, dword [esp + 0x5c]
mov edx, dword [eax - 8]
add esp, 0xc
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00403ab0
push ebp
lea eax, [esp + 0x54]
push str.if_exist__s_goto_repeat_r_n
push eax
call fcn.00405ab0
mov ebx, dword [esp + 0x5c]
mov ecx, dword [ebx - 8]
add esp, 0xc
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.00403ab0
mov edx, dword [esp + 0x2c]
mov esi, dword [edx + 0x198]
mov edi, dword [esp + 0x10]
cmp edi, esi
je 0x411138
mov ecx, dword [edi - 0xc]
test ecx, ecx
mov edx, dword [0x4800dc]
lea eax, [edi - 0xc]
mov dword [esp + 0x34], eax
jge 0x411076
lea eax, [edi - 0xc]
cmp eax, edx
jne 0x411081
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x411101
cmp ecx, 1
mov eax, dword [esi - 8]
mov dword [esp + 0x30], eax
jg 0x411092
cmp eax, dword [edi - 4]
jle 0x4110d5
add edi, 0xfffffff4
cmp edi, edx
je 0x4110bb
mov edi, dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4110b1
push edi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800d8]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x14]
call fcn.004039b0
test eax, eax
mov edi, dword [esp + 0x10]
je 0x411138
mov eax, dword [esp + 0x30]
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x4110f8
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov eax, edx
mov dword [edi - 8], eax
mov byte [eax + edi], 0
jmp 0x411138
add edi, 0xfffffff4
cmp edi, edx
je 0x411120
mov esi, dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411120
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x198]
lea ecx, [edi - 0xc]
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [edi - 8], 4
jl 0x411221
push 0x104
lea ecx, [esp + 0x18]
call fcn.004042d0
test eax, eax
mov ebp, dword [esp + 0x14]
jne 0x411168
xor eax, eax
jmp 0x411178
mov dword [ebp - 8], 0x104
mov byte [ebp + 0x104], 0
mov eax, ebp
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [ebp - 0xc]
cmp eax, 1
lea esi, [ebp - 0xc]
jle 0x4111ee
mov eax, dword [0x4800dc]
add ebp, 0xfffffff4
cmp ebp, eax
je 0x4111ba
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4111b0
push esi
call fcn.00457c3f
add esp, 4
mov edx, dword [0x4800d8]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.004039b0
test eax, eax
mov ebp, dword [esp + 0x14]
je 0x4111ee
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 4]
inc ecx
inc edx
cmp edx, ecx
jb 0x4111ee
mov eax, ecx
shr ecx, 2
add esi, 0xc
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
lea ecx, [esp + 0x54]
push str.rd__s__q__s_r_n
mov dword [ebp - 8], eax
push ecx
mov byte [eax + ebp], 0
call fcn.00405ab0
mov ebx, dword [esp + 0x5c]
mov edx, dword [ebx - 8]
add esp, 0xc
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.00403ab0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x411252
push 0x4718dc
push str.__s__q__f
lea ecx, [esp + 0x28]
call fcn.00409bb0
push str.deltree__y
push str.rd__s__q
lea ecx, [esp + 0x28]
call fcn.00409bb0
push str.del__0_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [ebx - 0xc]
cmp eax, 1
lea edi, [ebx - 0xc]
mov dword [esp + 0x34], esi
jg 0x411273
cmp esi, dword [ebx - 4]
jle 0x4112af
mov eax, dword [0x4800dc]
add ebx, 0xfffffff4
cmp ebx, eax
je 0x41129d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411293
push edi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800d8]
mov dword [esp + 0x50], ecx
push esi
lea ecx, [esp + 0x54]
call fcn.004039b0
test eax, eax
mov ebx, dword [esp + 0x50]
je 0x4112d8
lea edx, [esi + 1]
cmp edx, esi
jb 0x4112d1
mov ecx, dword [esp + 0x34]
mov eax, ecx
shr ecx, 2
mov esi, str.del__0_r_n
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov dword [ebx - 8], esi
mov byte [esi + ebx], 0
mov ecx, dword [ebx - 8]
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.00403ab0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0
mov eax, dword [edi - 8]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push 0
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [0x4800dc]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x411353
lea esi, [ebp - 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call ebp
test eax, eax
jg 0x411359
push esi
call fcn.00457c3f
add esp, 4
jmp 0x411359
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41137d
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x41137d
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea edx, [ebx - 0xc]
cmp edx, eax
je 0x41139c
add ebx, 0xfffffff4
push ebx
call ebp
test eax, eax
jg 0x41139c
push ebx
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [edi - 0xc]
cmp eax, ecx
je 0x4113bc
add edi, 0xfffffff4
push edi
call ebp
test eax, eax
jg 0x4113bc
push edi
call fcn.00457c3f
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [0x4800dc]
lea ecx, [edi - 0xc]
cmp ecx, eax
je 0x4113df
add edi, 0xfffffff4
push edi
call ebp
test eax, eax
jg 0x4113df
push edi
call fcn.00457c3f
add esp, 4
mov esi, dword [esp + 0x24]
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x411402
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x411402
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411426
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x411426
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41144a
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x41144a
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x40]
pop ebp
pop edi
pop esi
mov eax, 4
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4