Function at 0x40c280
Capabilities:
Delete file
Resolve function by parsing pe exports
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43e1c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x374]
mov esi, dword [esp + 0x350]
cmp eax, ebx
mov dword [esp + 0x344], ebx
jne 0x40c2e8
cmp esi, ebx
jne 0x40c2e8
push 1
lea ecx, [esp + 0x368]
mov dword [esp + 0x348], 0xffffffff
call fcn.004029a7
xor al, al
jmp 0x40cb4d
mov al, byte [esp + 0x17]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.004029a7
mov edi, str.launcher.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.launcher.exe
lea ecx, [esp + 0x40]
call fcn.00402b89
mov cl, byte [esp + 0x17]
push 0
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
mov byte [esp + 0x348], 1
call fcn.004029a7
mov edi, str.launcher2.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.launcher2.exe
lea ecx, [esp + 0x50]
call fcn.00402b89
mov dl, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 2
mov byte [esp + 0x20], dl
call fcn.004029a7
mov edi, 0x454070
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x454070
lea ecx, [esp + 0x24]
call fcn.00402b89
mov al, byte [esp + 0x364]
push 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x348], 3
mov byte [esp + 0x60], al
call fcn.004029a7
mov ecx, dword [0x44067c]
lea edx, [esp + 0x364]
push ecx
push 0
push edx
lea ecx, [esp + 0x68]
call fcn.004028ad
lea ecx, [esp + 0x94]
mov byte [esp + 0x344], 4
call fcn.0040fba0
mov edi, dword [esp + 0x34c]
lea eax, [esp + 0x94]
push edi
push eax
mov ecx, ebp
mov byte [esp + 0x34c], 5
call fcn.0040b610
push esi
lea ecx, [esp + 0x14]
call fcn.00434fbb
mov eax, dword [esp + 0x358]
mov byte [esp + 0x344], 6
test eax, eax
jne 0x40c439
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x98]
call fcn.00410190
mov ebx, 1
mov dword [esp + 0x30], ebx
mov eax, dword [eax]
mov byte [esp + 0x344], 7
push eax
lea ecx, [esp + 0x1c]
call fcn.00434fbb
test bl, 1
mov dword [esp + 0x344], 9
je 0x40c466
and ebx, 0xfffffffe
lea ecx, [esp + 0x80]
mov dword [esp + 0x30], ebx
call fcn.00434f91
lea edx, [esp + 0x18]
lea ecx, [esp + 0x2c]
push edx
call fcn.00434d06
push 0x44e1c8
lea ecx, [esp + 0x14]
mov byte [esp + 0x348], 0xa
call fcn.00430630
mov al, byte [esp + 0x354]
test al, al
je 0x40c4b8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0040be20
add esp, 8
or ebx, 2
mov dword [esp + 0x30], ebx
mov byte [esp + 0x344], 0xb
jmp 0x40c4dc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.0040bf10
add esp, 8
or ebx, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x344], 0xc
push eax
lea ecx, [esp + 0x80]
push 0x44e1c8
push ecx
call fcn.00435256
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x348], 0xd
call fcn.00435365
lea ecx, [esp + 0x7c]
mov byte [esp + 0x344], 0xc
call fcn.00434f91
test bl, 4
mov dword [esp + 0x344], 0xb
je 0x40c535
and ebx, 0xfffffffb
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], ebx
call fcn.00434f91
test bl, 2
mov dword [esp + 0x344], 0xa
je 0x40c54e
lea ecx, [esp + 0x34]
call fcn.00434f91
push edi
mov ecx, ebp
call fcn.0040c230
test al, al
je 0x40c631
mov edx, dword [esp + 0x10]
push edx
call fcn.0040bfe0
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 9
call fcn.00434f91
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 6
call fcn.00434f91
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 5
call fcn.00434f91
lea ecx, [esp + 0x94]
mov byte [esp + 0x344], 4
call fcn.0040fc20
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x348], 3
call fcn.004029a7
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 2
call fcn.004029a7
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x348], 1
call fcn.004029a7
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x348], 0
call fcn.004029a7
push 1
lea ecx, [esp + 0x368]
mov dword [esp + 0x348], 0xffffffff
call fcn.004029a7
mov al, 1
jmp 0x40cb4d
lea ecx, [esp + 0x2c]
call fcn.00435426
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x40c647
mov eax, 0x440680
push eax
lea ecx, [esp + 0x30]
call fcn.00430297
cmp eax, 0xffffffff
je 0x40c660
mov edx, dword [esp + 0x360]
mov byte [edx], 1
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1fc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp esi, 0xffffffff
je 0x40c6cd
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xe4]
push edx
push eax
call fcn.004367ec
mov al, byte [esp + 0xf4]
test al, 1
je 0x40c6cd
mov edx, dword [esp + 0x10]
mov bl, al
lea ecx, [esp + 0xe4]
and bl, 0xfe
push ecx
push edx
mov dword [esp + 0xf0], 0
mov byte [esp + 0xfc], bl
call fcn.00436951
push edi
mov ecx, ebp
call fcn.0040b720
test al, al
jne 0x40c790
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 9
call fcn.00434f91
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 6
call fcn.00434f91
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 5
call fcn.00434f91
lea ecx, [esp + 0x94]
mov byte [esp + 0x344], 4
call fcn.0040fc20
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x348], 3
call fcn.004029a7
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 2
call fcn.004029a7
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x348], 1
call fcn.004029a7
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x348], 0
call fcn.004029a7
push 1
lea ecx, [esp + 0x368]
mov dword [esp + 0x348], 0xffffffff
call fcn.004029a7
xor al, al
jmp 0x40cb4d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0040bd00
mov eax, dword [eax]
mov byte [esp + 0x34c], 0xe
push eax
call fcn.0040bfe0
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0x344], 0xa
call fcn.00434f91
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00402b89
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
cmp edx, eax
jb 0x40c93b
lea ecx, [esp + 0x1c]
call fcn.0040297b
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.0040297b
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40c810
xor ebx, ebx
jmp 0x40c817
mov ecx, dword [esp + 0x24]
lea ebx, [ecx + eax]
lea ecx, [esp + 0x1c]
call fcn.0040297b
mov esi, dword [esp + 0x20]
dec ebx
cmp esi, ebx
je 0x40c83d
movsx edx, byte [esi]
push edx
call fcn.0041f77e
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebx
jne 0x40c829
mov eax, dword [0x44067c]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
push 0
push ecx
sub edx, eax
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.0040d060
test eax, eax
jne 0x40c93b
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x40c874
mov eax, 0x440680
push 0x44e7a4
push eax
call fcn.0041efc7
add esp, 8
test eax, eax
je 0x40c8a3
push eax
call fcn.0041ede0
mov eax, dword [esp + 0x50]
add esp, 4
test eax, eax
jne 0x40c89c
mov eax, 0x440680
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.0040297b
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40c8b8
xor edi, edi
jmp 0x40c8bf
mov ecx, dword [esp + 0x24]
lea edi, [ecx + eax]
lea ecx, [esp + 0x1c]
call fcn.0040297b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c8d6
mov edx, dword [esp + 0x24]
add eax, edx
mov ecx, dword [esp + 0x40]
sub eax, ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0040297b
test esi, esi
jne 0x40c8ef
xor ecx, ecx
jmp 0x40c8f7
mov eax, dword [esp + 0x20]
mov ecx, esi
sub ecx, eax
test edi, edi
jne 0x40c8ff
xor eax, eax
jmp 0x40c903
sub edi, esi
mov eax, edi
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00402bbe
mov eax, dword [0x44067c]
lea ecx, [esp + 0x48]
push eax
push 0
push ecx
lea ecx, [esp + 0x28]
call fcn.004036e0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40c931
mov eax, 0x440680
push eax
lea ecx, [esp + 0x14]
call fcn.004350d6
mov edx, dword [esp + 0x10]
push 0x1021
push edx
lea ecx, [esp + 0x8c]
call fcn.00431345
mov ebx, dword [esp + 0x35c]
mov byte [esp + 0x344], 0xf
test ebx, ebx
je 0x40c974
lea ecx, [esp + 0x94]
call fcn.00410140
mov ebp, eax
jmp 0x40c976
xor ebp, ebp
mov eax, dword [esp + 0x374]
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x78]
call fcn.0040e3b0
mov eax, dword [esp + 0x78]
mov byte [esp + 0x344], 0x10
mov ecx, dword [esp + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x60]
call fcn.0040b8f0
mov esi, eax
test esi, esi
je 0x40c9d6
mov edx, dword [esp + 0x74]
push esi
push edx
lea ecx, [esp + 0x8c]
call fcn.004315f9
add edi, esi
test ebx, ebx
je 0x40c9d6
mov eax, dword [esp + 0x360]
push eax
push edi
push ebp
call ebx
add esp, 0xc
test al, al
je 0x40c9de
mov eax, dword [esp + 0x78]
cmp esi, eax
je 0x40c996
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x5c]
call fcn.0040bb30
cmp eax, 1
lea ecx, [esp + 0x70]
sete bl
mov byte [esp + 0x344], 0xf
call fcn.0040e3e0
lea ecx, [esp + 0x84]
mov byte [esp + 0x344], 0xa
call fcn.004313e5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 9
call fcn.00434f91
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 6
call fcn.00434f91
lea ecx, [esp + 0x10]
mov byte [esp + 0x344], 5
call fcn.00434f91
lea ecx, [esp + 0x94]
mov byte [esp + 0x344], 4
call fcn.0040fc20
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
je 0x40ca88
mov cl, byte [eax - 1]
test cl, cl
je 0x40ca7e
cmp cl, 0xff
je 0x40ca7e
dec cl
mov byte [eax - 1], cl
jmp 0x40ca88
dec eax
push eax
call fcn.004312e5
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x60], esi
cmp ecx, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
je 0x40cab8
mov al, byte [ecx - 1]
test al, al
je 0x40caae
cmp al, 0xff
je 0x40caae
dec al
mov byte [ecx - 1], al
jmp 0x40cab8
dec ecx
push ecx
call fcn.004312e5
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], esi
cmp ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x40cae8
mov al, byte [ecx - 1]
test al, al
je 0x40cade
cmp al, 0xff
je 0x40cade
dec al
mov byte [ecx - 1], al
jmp 0x40cae8
dec ecx
push ecx
call fcn.004312e5
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
cmp ecx, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x40cb18
mov al, byte [ecx - 1]
test al, al
je 0x40cb0e
cmp al, 0xff
je 0x40cb0e
dec al
mov byte [ecx - 1], al
jmp 0x40cb18
dec ecx
push ecx
call fcn.004312e5
add esp, 4
mov ecx, dword [esp + 0x368]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x40cb4b
mov al, byte [ecx - 1]
test al, al
je 0x40cb41
cmp al, 0xff
je 0x40cb41
dec al
mov byte [ecx - 1], al
jmp 0x40cb4b
dec ecx
push ecx
call fcn.004312e5
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x338
ret 0x2c