Function at 0x4126a1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afeb6
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4dd070]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4dd070]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 8
pop esi
cmp dword [ebx + 0x570], esi
jb 0x4126f7
mov eax, dword [ebx + 0x55c]
jmp 0x4126fd
lea eax, [ebx + 0x55c]
push 0x4ba504
push eax
call fcn.004278bc
test eax, eax
je 0x41286c
cmp dword [ebx + 0x570], esi
jb 0x412720
mov edi, dword [ebx + 0x55c]
jmp 0x412726
lea edi, [ebx + 0x55c]
call fcn.00424f01
cmp dword [ebx + 0x570], esi
jb 0x41273b
mov eax, dword [ebx + 0x55c]
jmp 0x412741
lea eax, [ebx + 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.00412191
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
mov dword [esp + 0x2f4], esi
call fcn.004137df
pop ecx
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x2f4], 2
call fcn.0040d485
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4127b6
mov esi, eax
lea edi, [esp + 0x9c]
call fcn.00413672
push dword [esp + 0x9c]
call fcn.004903c0
pop ecx
mov eax, esi
jmp 0x412b05
cmp dword [ebx + 0x570], 8
jb 0x4127c7
mov eax, dword [ebx + 0x55c]
jmp 0x4127cd
lea eax, [ebx + 0x55c]
push eax
lea ecx, [esp + 0xa0]
call fcn.0044a577
pop ecx
mov edi, eax
call fcn.004125a6
cmp edi, esi
je 0x41284e
cmp edi, 1
jne 0x412802
push 0x10
push 0x4b8140
push 0x4ba554
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x412846
push edi
lea edi, [esp + 0xbc]
call fcn.0044a485
cmp dword [eax + 0x18], 8
pop ecx
jb 0x41281b
mov eax, dword [eax + 4]
jmp 0x41281e
add eax, 4
mov esi, dword [ebx + 4]
push eax
push 0x4ba584
push 0x10
mov edi, 0x4b8140
call fcn.00425830
add esp, 0xc
push 0
push 1
lea esi, [esp + 0xc0]
call fcn.00402bb8
push 0xa
pop esi
jmp 0x412796
lea edi, [esp + 0x9c]
call fcn.00413672
push dword [esp + 0x9c]
call fcn.004903c0
pop ecx
jmp 0x412b03
cmp dword [ebx + 0x570], esi
jb 0x41287c
mov esi, dword [ebx + 0x55c]
jmp 0x412882
lea esi, [ebx + 0x55c]
call fcn.0042500b
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x570], 8
jb 0x4128a1
mov eax, dword [ebx + 0x55c]
jmp 0x4128a7
lea eax, [ebx + 0x55c]
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.00412191
mov dword [esp + 0x2f0], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x4128e2
mov esi, eax
or dword [esp + 0x2f0], 0xffffffff
lea eax, [esp + 0x40]
push eax
call fcn.0040d485
jmp 0x4127af
push esi
push esi
lea eax, [esp + 0x2c]
call fcn.00431ce9
mov byte [esp + 0x2f0], 6
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.00429373
test al, al
jne 0x412a0f
call fcn.00429348
cmp dword [eax + 0x18], 8
jb 0x41293c
mov eax, dword [eax + 4]
jmp 0x41293f
add eax, 4
push eax
lea ecx, [esp + 0xa0]
call fcn.00406ad2
pop ecx
mov byte [esp + 0x2f0], 7
cmp dword [esp + 0xb0], 0
je 0x4129e6
sub esp, 0x18
lea edx, [esp + 0xb4]
mov esi, esp
mov dword [esp + 0x54], esp
call fcn.00430e5a
lea esi, [esp + 0x2c]
mov byte [esp + 0x308], 8
call fcn.00429348
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00403ea7
pop ecx
pop ecx
mov byte [esp + 0x308], 9
lea ecx, [esp + 0x3c]
push ecx
call fcn.00431fff
mov edi, eax
mov byte [esp + 0x308], 0xa
call fcn.004310b2
push 0
push 1
lea ecx, [esp + 0x68]
call fcn.00402abb
push 0
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2f8], 6
call fcn.00402abb
call fcn.0040d8d2
jmp 0x412907
push 0
push 1
lea ecx, [esp + 0xa4]
call fcn.00402abb
lea esi, [esp + 0x24]
mov byte [esp + 0x2f0], 3
call fcn.0043102f
push 0xe
pop esi
jmp 0x4128cb
xor eax, eax
push 0x206
mov word [esp + 0xd8], ax
xor esi, esi
lea eax, [esp + 0xda]
push esi
push eax
call fcn.00492360
add esp, 0xc
cmp dword [ebx + 0x570], 8
jb 0x412a42
mov ebx, dword [ebx + 0x55c]
jmp 0x412a48
add ebx, 0x55c
push ebx
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4b97d4
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x64]
call fcn.00432484
push eax
lea eax, [esp + 0xbc]
push eax
mov byte [esp + 0x2f8], 0xb
call fcn.004396c3
pop ecx
pop ecx
push esi
push 1
lea ecx, [esp + 0x68]
call fcn.00402abb
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x412ab4
lea eax, [esp + 0xbc]
push dword [esp + 0xcc]
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.0042575d
push esi
lea ecx, [esp + 0xbc]
push 1
test eax, eax
je 0x4129f1
call fcn.00402abb
lea esi, [esp + 0x24]
mov byte [esp + 0x2f0], 3
call fcn.0043102f
or dword [esp + 0x2f0], 0xffffffff
lea eax, [esp + 0x40]
push eax
call fcn.0040d485
xor eax, eax
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0048ff11
mov esp, ebp
pop ebp
ret 4