Function at 0x40dbbe
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
push ebp
sub esp, 0x328
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x328], eax
push 0x5c
mov eax, 0x44b68f
call fcn.00433137
mov eax, dword [ebp + 0x344]
mov ebx, dword [ebp + 0x338]
mov edi, dword [ebp + 0x340]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x348]
xor esi, esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x368], esi
mov dword [ebp - 4], esi
jne 0x40dc51
cmp ebx, esi
jne 0x40dc51
xor bl, bl
push esi
push 1
lea ecx, [ebp + 0x34c]
call fcn.00401627
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x328]
xor ecx, ebp
call fcn.00432980
add ebp, 0x32c
leave
ret 0x38
push str.launcher.exe
lea ecx, [ebp + 0x2d4]
call fcn.00401add
push str.launcher2.exe
lea ecx, [ebp + 0x2f0]
mov byte [ebp - 4], 1
call fcn.00401add
push 0x44fe3b
lea ecx, [ebp + 0x30c]
mov byte [ebp - 4], 2
call fcn.00401add
lea eax, [ebp + 0x34c]
push eax
lea ecx, [ebp + 0x2b8]
mov byte [ebp - 4], 3
call fcn.004019de
lea ecx, [ebp + 0x268]
mov byte [ebp - 4], 4
call fcn.0040f586
push dword [ebp + 0x334]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x268]
push eax
mov byte [ebp - 4], 5
call fcn.0040cc57
push ebx
lea ecx, [ebp - 0x10]
call fcn.004054e0
cmp edi, esi
mov byte [ebp - 4], 6
je 0x40dcdd
xor ebx, ebx
inc ebx
jmp 0x40dcf8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x268]
call fcn.0040fdae
mov edi, dword [eax]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], ebx
push edi
lea ecx, [ebp - 0x14]
call fcn.004054e0
test byte [ebp - 0x18], 1
mov dword [ebp - 4], 9
je 0x40dd1d
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x18], 0xfffffffe
add ecx, 0xfffffff0
call fcn.00402050
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402f44
mov edi, 0x44fc5c
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.0040d65d
cmp byte [ebp + 0x33c], 0
push dword [ebp - 0x14]
je 0x40dd5c
lea eax, [ebp - 0x40]
push eax
call fcn.0040d960
pop ecx
pop ecx
or dword [ebp - 0x18], 2
mov byte [ebp - 4], 0xb
jmp 0x40dd72
lea eax, [ebp - 0x48]
push eax
call fcn.0040da32
pop ecx
pop ecx
or dword [ebp - 0x18], 4
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0040d712
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xd
call fcn.00404f1a
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00402050
test byte [ebp - 0x18], 4
je 0x40ddb0
mov ecx, dword [ebp - 0x48]
and dword [ebp - 0x18], 0xfffffffb
add ecx, 0xfffffff0
call fcn.00402050
test byte [ebp - 0x18], 2
mov dword [ebp - 4], 0xa
je 0x40ddc8
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00402050
push dword [ebp + 0x334]
mov ecx, dword [ebp - 0x20]
call fcn.0040ccb1
test al, al
je 0x40de61
push dword [ebp - 0x10]
call fcn.0040dae9
pop ecx
push dword [ebp + 0x28c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00402050
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402050
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402050
lea ecx, [ebp + 0x268]
mov byte [ebp - 4], 4
call fcn.0040f5e1
push esi
push ebx
lea ecx, [ebp + 0x2b8]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp + 0x30c]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp + 0x2f0]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp + 0x2d4]
call fcn.00401627
mov bl, 1
jmp 0x40dc1c
lea ecx, [ebp - 0x24]
call fcn.00403063
cmp dword [ebp + 0x2d0], 0x10
mov eax, dword [ebp + 0x2bc]
jae 0x40de7e
lea eax, [ebp + 0x2bc]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004048f1
cmp eax, 0xffffffff
je 0x40de93
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004026af
cmp byte [eax], 0x5c
lea ecx, [ebp]
push ecx
jne 0x40deb4
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x40df5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp + 0x140]
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x140], esi
mov dword [ebp + 0x144], esi
mov dword [ebp + 0x148], esi
mov dword [ebp + 0x14c], esi
mov dword [ebp + 0x150], esi
mov dword [ebp + 0x154], esi
call fcn.00424362
test byte [ebp + 0x160], 1
je 0x40df31
and byte [ebp + 0x160], 0xfe
lea eax, [ebp + 0x140]
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x148], esi
mov dword [ebp + 0x14c], esi
call fcn.00424556
test byte [ebp + 0x160], 2
je 0x40df5c
and byte [ebp + 0x160], 0xfd
lea eax, [ebp + 0x140]
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x148], esi
mov dword [ebp + 0x14c], esi
call fcn.00424556
push dword [ebp + 0x334]
mov ecx, dword [ebp - 0x20]
call fcn.0040d30b
test al, al
jne 0x40dfd7
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00402050
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402050
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402050
lea ecx, [ebp + 0x268]
mov byte [ebp - 4], 4
call fcn.0040f5e1
push esi
push ebx
lea ecx, [ebp + 0x2b8]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp + 0x30c]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp + 0x2f0]
call fcn.00401627
push esi
push ebx
lea ecx, [ebp + 0x2d4]
call fcn.00401627
jmp 0x40dc1a
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.0040d85d
push dword [eax]
mov byte [ebp - 4], 0xe
call fcn.0040dae9
mov ecx, dword [ebp - 0x38]
add esp, 0xc
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.00402050
push dword [ebp - 0x10]
lea ecx, [ebp + 0x30c]
call fcn.00401a04
mov eax, dword [ebp + 0x320]
cmp eax, dword [ebp + 0x2e8]
jb 0x40e175
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x30c]
call fcn.0040d59c
mov ebx, eax
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x30c]
call fcn.0040d5bc
mov ecx, eax
call fcn.0040d5e1
mov edi, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x30c]
call fcn.0040d59c
push fcn.00437107
push dword [ebx + 4]
push dword [ebx]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d62c
add esp, 0x20
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x2d4]
push eax
mov eax, dword [ebp + 0x320]
push dword [ebp + 0x2e8]
sub eax, dword [ebp + 0x2e8]
lea ecx, [ebp + 0x30c]
push eax
call fcn.0040cdca
test eax, eax
jne 0x40e175
cmp dword [ebp + 0x308], 0x10
mov eax, dword [ebp + 0x2f4]
jae 0x40e0c3
lea eax, [ebp + 0x2f4]
push 0x450e8c
push eax
call fcn.00433e19
cmp eax, esi
pop ecx
pop ecx
je 0x40e0f7
push eax
call fcn.00433af8
cmp dword [ebp + 0x308], 0x10
mov eax, dword [ebp + 0x2f4]
pop ecx
jae 0x40e0f0
lea eax, [ebp + 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [ebp + 0x2e8]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x30c]
call fcn.0040d5bc
mov edi, eax
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x30c]
call fcn.0040d5bc
mov ecx, eax
call fcn.0040d5e1
push dword [edi + 4]
lea ecx, [ebp + 0x30c]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call fcn.0040d776
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x2f0]
push eax
lea ecx, [ebp + 0x30c]
call fcn.004030d2
cmp dword [ebp + 0x324], 0x10
mov eax, dword [ebp + 0x310]
jae 0x40e16c
lea eax, [ebp + 0x310]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403199
push 0x1021
push dword [ebp - 0x10]
lea ecx, [ebp - 0x68]
call fcn.0041d95e
cmp dword [ebp - 0x28], esi
mov byte [ebp - 4], 0xf
je 0x40e19e
lea ecx, [ebp + 0x268]
call fcn.0040f8cb
mov dword [ebp - 0x18], eax
jmp 0x40e1a1
mov dword [ebp - 0x18], esi
push esi
push dword [ebp + 0x368]
lea ecx, [ebp - 0x58]
xor ebx, ebx
call fcn.0040e3ab
mov byte [ebp - 4], 0x10
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x54]
call fcn.0040cf29
mov edi, eax
cmp edi, esi
je 0x40e1ee
push edi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x68]
call fcn.0041d0f6
add ebx, edi
cmp dword [ebp - 0x28], esi
je 0x40e1ee
push dword [ebp - 0x34]
push ebx
push dword [ebp - 0x18]
call dword [ebp - 0x28]
add esp, 0xc
test al, al
je 0x40e1f3
cmp edi, dword [ebp - 0x50]
je 0x40e1b6
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x68]
push eax
call fcn.0040d4b2
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0xf
call fcn.0040e3cf
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.0041d47c
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00402050
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402050
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402050
lea ecx, [ebp + 0x268]
mov byte [ebp - 4], 4
call fcn.0040f5e1
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp + 0x2b8]
call fcn.00401627
push esi
push edi
lea ecx, [ebp + 0x30c]
call fcn.00401627
push esi
push edi
lea ecx, [ebp + 0x2f0]
call fcn.00401627
push esi
push edi
lea ecx, [ebp + 0x2d4]
call fcn.00401627
jmp 0x40dc1c