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

Disassembly:
push 0xffffffffffffffff
push 0x45b142
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x384], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x39c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3bc]
mov edi, dword [esp + 0x3b0]
mov esi, dword [esp + 0x3b8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x3c0]
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3a4], ebx
cmp dword [esp + 0x3e0], ebx
jne 0x418114
cmp edi, ebx
jne 0x418114
mov dword [esp + 0x3a4], 0xffffffff
cmp dword [esp + 0x3dc], 0x10
jb 0x418102
mov edx, dword [esp + 0x3c8]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x3dc], 0xf
xor al, al
jmp 0x418bbf
push 0xc
mov ebp, 0xf
push str.launcher.exe
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00401da0
mov byte [esp + 0x3a4], 1
push 0xd
push str.launcher2.exe
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00401da0
mov byte [esp + 0x3a4], 2
push ebx
push 0x45ec69
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00401da0
mov byte [esp + 0x3a4], 3
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3cc]
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00401cc0
mov byte [esp + 0x3a4], 4
lea ecx, [esp + 0xe0]
call fcn.0041a9c0
mov byte [esp + 0x3a4], 5
mov ecx, dword [esp + 0x3ac]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xe4]
push edx
call fcn.00416990
push edi
lea ecx, [esp + 0x18]
call fcn.00404b00
mov byte [esp + 0x3a4], 6
cmp esi, ebx
jne 0x41823c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe4]
call fcn.0041b1f0
mov byte [esp + 0x3a4], 7
mov esi, dword [eax]
mov dword [esp + 0x18], 1
push esi
lea ecx, [esp + 0x20]
call fcn.00404b00
mov dword [esp + 0x3a4], 9
test byte [esp + 0x18], 1
je 0x418266
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.004032f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404170
mov byte [esp + 0x3a4], 0xa
push 0x45ecf4
lea ecx, [esp + 0x18]
call fcn.00417710
cmp byte [esp + 0x3b4], bl
je 0x4182b4
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00417cd0
add esp, 8
mov byte [esp + 0x3a4], 0xb
or dword [esp + 0x18], 2
jmp 0x4182d6
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00417df0
add esp, 8
mov dword [esp + 0x3a4], 0xc
or dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x3c]
push 0x45ecf4
push eax
call fcn.00417830
add esp, 0xc
mov dword [esp + 0x3a4], 0xd
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004076c0
mov byte [esp + 0x3a4], 0xc
lea ecx, [esp + 0x38]
call fcn.004032f0
mov dword [esp + 0x3a4], 0xb
test byte [esp + 0x18], 4
je 0x418335
and dword [esp + 0x18], 0xfffffffb
lea ecx, [esp + 0x44]
call fcn.004032f0
mov dword [esp + 0x3a4], 0xa
test byte [esp + 0x18], 2
je 0x418355
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x2c]
call fcn.004032f0
mov ecx, dword [esp + 0x3ac]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00416a20
test al, al
je 0x4184dd
mov edx, dword [esp + 0x14]
push edx
call fcn.00417ef0
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [esp + 0x3a4], 9
lea ecx, [esp + 0x24]
call fcn.004032f0
mov byte [esp + 0x3a4], 6
lea ecx, [esp + 0x1c]
call fcn.004032f0
mov byte [esp + 0x3a4], 5
lea ecx, [esp + 0x14]
call fcn.004032f0
mov byte [esp + 0x3a4], 4
lea ecx, [esp + 0xe0]
call fcn.0041aa60
mov byte [esp + 0x3a4], 3
mov esi, 0x10
cmp dword [esp + 0xdc], esi
jb 0x4183fb
mov edx, dword [esp + 0xc8]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov byte [esp + 0x3a4], 2
cmp dword [esp + 0x88], esi
jb 0x41842e
mov eax, dword [esp + 0x74]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0x3a4], 1
cmp dword [esp + 0xa4], esi
jb 0x418461
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0x3a4], bl
cmp dword [esp + 0xc0], esi
jb 0x418496
mov edx, dword [esp + 0xac]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0x3a4], 0xffffffff
cmp dword [esp + 0x3dc], esi
jb 0x4184cf
mov eax, dword [esp + 0x3c8]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x3dc], ebp
mov al, 1
jmp 0x418bbf
lea ecx, [esp + 0x24]
call fcn.00404380
cmp dword [esp + 0xdc], 0x10
jb 0x41855f
mov ecx, dword [esp + 0xc8]
cmp ecx, ebx
je 0x418522
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
jl 0x418522
push ecx
push eax
call fcn.0044192a
add esp, 8
cmp eax, ebx
je 0x418522
sub eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x418522
mov ecx, dword [esp + 0x40]
mov byte [ecx], 1
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x41854f
push esi
lea ecx, [esp + 0x20]
call fcn.00402e50
mov edx, dword [esp + 0x1c]
cmp byte [edx], 0x5c
jne 0x418568
lea eax, [esp + 0x258]
push eax
inc edx
jmp 0x418570
lea ecx, [esp + 0xc8]
jmp 0x4184fb
lea ecx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x41862f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x130]
push edx
push eax
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
call fcn.00430e81
test byte [esp + 0x150], 1
je 0x4185fd
mov edx, dword [esp + 0x14]
and byte [esp + 0x150], 0xfe
lea ecx, [esp + 0x130]
push ecx
push edx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
call fcn.0043109b
test byte [esp + 0x150], 2
je 0x41862f
mov ecx, dword [esp + 0x14]
and byte [esp + 0x150], 0xfd
lea eax, [esp + 0x130]
push eax
push ecx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
call fcn.0043109b
mov edx, dword [esp + 0x3ac]
mov ecx, dword [esp + 0x28]
push edx
call fcn.00417260
test al, al
jne 0x418797
mov byte [esp + 0x3a4], 9
lea ecx, [esp + 0x24]
call fcn.004032f0
mov byte [esp + 0x3a4], 6
lea ecx, [esp + 0x1c]
call fcn.004032f0
mov byte [esp + 0x3a4], 5
lea ecx, [esp + 0x14]
call fcn.004032f0
mov byte [esp + 0x3a4], 4
lea ecx, [esp + 0xe0]
call fcn.0041aa60
mov byte [esp + 0x3a4], 3
mov esi, 0x10
cmp dword [esp + 0xdc], esi
jb 0x4186b5
mov eax, dword [esp + 0xc8]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov byte [esp + 0x3a4], 2
cmp dword [esp + 0x88], esi
jb 0x4186e8
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0x3a4], 1
cmp dword [esp + 0xa4], esi
jb 0x41871b
mov edx, dword [esp + 0x90]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0x3a4], bl
cmp dword [esp + 0xc0], esi
jb 0x418750
mov eax, dword [esp + 0xac]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0x3a4], 0xffffffff
cmp dword [esp + 0x3dc], esi
jb 0x418789
mov ecx, dword [esp + 0x3c8]
push ecx
call fcn.00421b49
add esp, 4
mov dword [esp + 0x3dc], ebp
xor al, al
jmp 0x418bbf
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00417b20
mov byte [esp + 0x3ac], 0xe
mov eax, dword [eax]
push eax
call fcn.00417ef0
add esp, 0xc
mov byte [esp + 0x3a4], 0xa
lea ecx, [esp + 0x2c]
call fcn.004032f0
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4187d3
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.00401da0
mov ecx, dword [esp + 0x84]
cmp ecx, dword [esp + 0xbc]
jb 0x418997
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x74]
mov ebp, 0x10
mov eax, edi
cmp edx, ebp
jae 0x418815
lea eax, [esp + 0x74]
lea esi, [ecx + eax]
cmp esi, ebx
je 0x41883a
mov eax, edi
cmp edx, ebp
jae 0x418826
lea eax, [esp + 0x74]
cmp eax, esi
ja 0x41883a
mov eax, edi
cmp edx, ebp
jae 0x418834
lea eax, [esp + 0x74]
add ecx, eax
cmp esi, ecx
jbe 0x41883f
call fcn.004408d8
lea edx, [esp + 0x44]
lea ecx, [esp + 0x70]
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
call fcn.004175d0
mov esi, eax
push 1
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
call fcn.00417640
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x74]
mov edi, eax
call fcn.004175d0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push fcn.00441b12
push edx
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004176d0
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xa4]
add esp, 0x20
lea edx, [esp + 0xa8]
push edx
sub ecx, eax
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.004171a0
test eax, eax
jne 0x418997
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], ebp
jae 0x4188e0
lea eax, [esp + 0x90]
push 0x4603d0
push eax
call fcn.00441419
add esp, 8
cmp eax, ebx
je 0x418919
push eax
call fcn.00441039
mov eax, dword [esp + 0x94]
add esp, 4
cmp dword [esp + 0xa4], ebp
jae 0x418912
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x74]
call fcn.00417610
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0xbc]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x7c]
call fcn.00417610
mov ecx, eax
call fcn.00417640
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push edi
push esi
push ecx
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x84]
call fcn.004178e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00404460
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebp
jae 0x41898d
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x18]
call fcn.00404800
mov edx, dword [esp + 0x14]
push 0x1021
push edx
lea ecx, [esp + 0x60]
call fcn.00429e19
mov byte [esp + 0x3a4], 0xf
cmp dword [esp + 0x34], ebx
je 0x4189c8
lea ecx, [esp + 0xe0]
call fcn.0041acc0
mov ebp, eax
jmp 0x4189ca
xor ebp, ebp
mov eax, dword [esp + 0x3e0]
push ebx
push eax
lea ecx, [esp + 0x54]
xor edi, edi
call fcn.00418e50
mov byte [esp + 0x3a4], 0x10
mov eax, dword [esp + 0x54]
lea ebx, [ebx]
mov ecx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00416d90
mov esi, eax
cmp esi, ebx
je 0x418a2e
mov edx, dword [esp + 0x50]
push esi
push edx
lea ecx, [esp + 0x60]
call fcn.0042956a
add edi, esi
cmp dword [esp + 0x34], ebx
je 0x418a2e
mov eax, dword [esp + 0x40]
push eax
push edi
push ebp
call dword [esp + 0x40]
add esp, 0xc
test al, al
je 0x418a36
mov eax, dword [esp + 0x54]
cmp esi, eax
je 0x4189f0
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00417420
cmp eax, 1
sete byte [esp + 0x23]
mov byte [esp + 0x3a4], 0xf
lea ecx, [esp + 0x4c]
call fcn.00418e80
mov byte [esp + 0x3a4], 0xa
lea ecx, [esp + 0x58]
call fcn.0042990f
mov byte [esp + 0x3a4], 9
lea ecx, [esp + 0x24]
call fcn.004032f0
mov byte [esp + 0x3a4], 6
lea ecx, [esp + 0x1c]
call fcn.004032f0
mov byte [esp + 0x3a4], 5
lea ecx, [esp + 0x14]
call fcn.004032f0
mov byte [esp + 0x3a4], 4
lea ecx, [esp + 0xe0]
call fcn.0041aa60
mov byte [esp + 0x3a4], 3
mov edi, 0x10
cmp dword [esp + 0xdc], edi
jb 0x418adb
mov edx, dword [esp + 0xc8]
push edx
call fcn.00421b49
add esp, 4
mov esi, 0xf
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
mov byte [esp + 0x3a4], 2
cmp dword [esp + 0x88], edi
jb 0x418b13
mov eax, dword [esp + 0x74]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0x3a4], 1
cmp dword [esp + 0xa4], edi
jb 0x418b46
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0x3a4], bl
cmp dword [esp + 0xc0], edi
jb 0x418b7b
mov edx, dword [esp + 0xac]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0x3a4], 0xffffffff
cmp dword [esp + 0x3dc], edi
jb 0x418bb4
mov eax, dword [esp + 0x3c8]
push eax
call fcn.00421b49
add esp, 4
mov al, byte [esp + 0x23]
mov dword [esp + 0x3dc], esi
mov byte [esp + 0x3c8], bl
mov dword [esp + 0x3d8], ebx
mov ecx, dword [esp + 0x39c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x384]
xor ecx, esp
call fcn.0044014d
add esp, 0x394
ret 0x38