Function at 0x40186c
Capabilities:
Delete file

Disassembly:
push 0x2f4
mov eax, 0x4181e0
call fcn.0040c62a
lea edi, [ebp - 0x2c0]
call fcn.00402877
and dword [ebp - 4], 0
lea eax, [ebp - 0x2a0]
call fcn.00403f60
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [ebp - 0x218]
lea esi, [ebp - 0x260]
call fcn.004040c0
mov byte [ebp - 4], 2
mov edi, 0x41c08c
jmp 0x4018e8
mov ecx, edi
call fcn.00404be0
push eax
mov eax, dword [ebp - 0x260]
lea esi, [ebp - 0x260]
call fcn.00404c00
push eax
call fcn.004042d0
mov ecx, edi
lea esi, [ebp - 0x260]
call fcn.00404be0
test eax, eax
jns 0x4018c9
mov edi, 0x41c090
mov ecx, edi
call fcn.00404be0
test eax, eax
js 0x401adf
mov ecx, edi
call fcn.00404be0
mov ecx, 0x41c094
mov edi, eax
call fcn.00404be0
dec eax
push edi
call fcn.00404c00
push eax
call fcn.004042d0
mov ebx, 0x41c0a0
mov ecx, ebx
call fcn.00404be0
test eax, eax
jle 0x401974
mov ecx, ebx
call fcn.00404be0
mov ecx, 0x41c0a4
lea edi, [eax - 1]
call fcn.00404be0
test eax, eax
jle 0x40195f
mov ecx, ebx
call fcn.00404be0
lea edi, [eax - 2]
push 0
mov eax, edi
lea esi, [ebp - 0x260]
call fcn.00404c00
push eax
call fcn.004042d0
mov ebx, 0x41c0a8
mov ecx, ebx
lea esi, [ebp - 0x260]
call fcn.00404be0
test eax, eax
jle 0x4019c1
mov ecx, ebx
call fcn.00404be0
mov ecx, 0x41c0a4
lea edi, [eax - 1]
call fcn.00404be0
test eax, eax
jle 0x4019ac
mov ecx, ebx
call fcn.00404be0
lea edi, [eax - 2]
push 0
mov eax, edi
lea esi, [ebp - 0x260]
call fcn.00404c00
push eax
call fcn.004042d0
lea esi, [ebp - 0x260]
call fcn.00404ab0
and dword [ebp - 0x224], 0
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
call fcn.00403457
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x270]
push eax
mov byte [ebp - 4], 3
call fcn.00401797
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.00403478
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x270]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
cmp eax, 1
jbe 0x401aa3
cmp dword [ecx + 0x14], 0x10
jb 0x401a3d
mov ecx, dword [ecx]
push ecx
lea esi, [ebp - 0x260]
call fcn.004042d0
push 0x41c0ac
mov eax, esi
push eax
call fcn.00404870
mov eax, dword [ebp - 0x270]
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x401a67
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00404870
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x270]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
cmp eax, 2
jbe 0x401aa3
lea eax, [ecx + 0x38]
cmp dword [eax + 0x14], 0x10
jb 0x401a98
mov eax, dword [eax]
push eax
mov esi, 0x84811c
call fcn.004042d0
push 0x41c0b0
mov edi, 0x8480fc
push edi
call fcn.00404870
sub esp, 0x20
lea ebx, [ebp - 0x260]
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov ebx, edi
call fcn.00404690
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.004035d8
lea edi, [ebp - 0x238]
call fcn.00402877
sub esp, 0x20
mov byte [ebp - 4], 6
mov ebx, 0x8480fc
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov ebx, edi
call fcn.00404690
mov esi, edi
call fcn.00404ab0
push eax
call fcn.00404f80
pop ecx
mov byte [ebp - 4], 2
call fcn.00404280
call fcn.0040208d
lea eax, [ebp - 0x2c0]
push eax
lea esi, [ebp - 0x2a0]
call fcn.00404510
push 0x41c0b4
mov eax, esi
push eax
call fcn.00404870
lea edi, [ebp - 0x238]
call fcn.00402877
sub esp, 0x20
mov byte [ebp - 4], 7
mov ebx, 0x84813c
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov ebx, edi
call fcn.00404690
lea esi, [ebp - 0x2e0]
call fcn.00404160
push 0x41c0bc
mov eax, esi
push eax
mov byte [ebp - 4], 8
call fcn.00404870
lea edi, [ebp - 0x300]
call fcn.00402877
push 0
mov esi, ebx
mov byte [ebp - 4], 9
call fcn.00404ab0
push eax
call fcn.0040b6a5
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x401c1b
lea esi, [ebp - 0x280]
call fcn.00404160
push 0x41c0c0
mov eax, esi
push eax
mov byte [ebp - 4], 0xa
call fcn.00404870
push 0
call fcn.00404ab0
push eax
call fcn.0040b6a5
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x401bed
call fcn.00404b50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x280]
call fcn.00404ab0
push eax
lea esi, [ebp - 0x238]
call fcn.00404ab0
push eax
call fcn.0040b6bd
pop ecx
pop ecx
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 9
call fcn.00404280
sub esp, 0x20
mov edi, 0x41c0c4
mov ebx, edi
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.004041f0
push 0x87
sub esp, 0x20
mov byte [ebp - 4], 0xb
lea ebx, [ebp - 0x2a0]
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.00404160
mov byte [ebp - 4], 9
call fcn.004017d0
add esp, 0x24
lea ebx, [ebp - 0x2c0]
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.00404160
sub esp, 0x20
mov byte [ebp - 4], 0xc
lea ebx, [ebp - 0x2a0]
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov byte [ebp - 4], 9
call fcn.004028f1
add esp, 0x20
mov ebx, 0x8480fc
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.00404160
lea ebx, [ebp - 0x2c0]
call fcn.00404690
mov eax, ebx
push eax
lea esi, [ebp - 0x2a0]
call fcn.00404510
push str.game.7z
mov eax, esi
push eax
call fcn.00404870
sub esp, 0x20
mov ebx, edi
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.004041f0
push 0x88
sub esp, 0x20
mov byte [ebp - 4], 0xd
lea ebx, [ebp - 0x2a0]
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov byte [ebp - 4], 9
call fcn.004017d0
add esp, 0x24
lea ebx, [ebp - 0x2c0]
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.00404160
sub esp, 0x20
mov byte [ebp - 4], 0xe
lea ebx, [ebp - 0x2a0]
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov byte [ebp - 4], 9
call fcn.004028f1
add esp, 0x40
cmp dword [0x421858], 0
je 0x401dc3
lea edi, [ebp - 0x280]
call fcn.00402877
sub esp, 0x20
mov byte [ebp - 4], 0xf
mov ebx, 0x8480fc
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.00404160
mov ebx, edi
call fcn.00404690
push str.launch.exe
mov eax, edi
push eax
call fcn.00404870
sub esp, 0x20
mov ebx, 0x421858
mov esi, esp
mov dword [ebp - 0x240], esp
call fcn.00404160
sub esp, 0x20
mov byte [ebp - 4], 0x10
mov ebx, edi
mov esi, esp
mov dword [ebp - 0x23c], esp
call fcn.00404160
mov byte [ebp - 4], 0xf
call fcn.00401e13
add esp, 0x40
mov esi, edi
call fcn.00404280
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea esi, [ebp - 0x300]
call fcn.00404280
lea esi, [ebp - 0x2e0]
call fcn.00404280
lea esi, [ebp - 0x238]
call fcn.00404280
lea esi, [ebp - 0x260]
call fcn.00404280
lea esi, [ebp - 0x2a0]
call fcn.00404280
lea esi, [ebp - 0x2c0]
call fcn.00404280
call fcn.0040c674
ret