Function at 0x409a99
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c24
call fcn.00410620
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x417]
push ebx
push eax
mov dword [ebp - 0x14], 0x4030201
mov dword [ebp - 0x10], 0x8070605
mov dword [ebp - 0xc], 0xc0b0a09
mov dword [ebp - 8], 0x100f0e0d
mov byte [ebp - 0x418], bl
call fcn.0040fd90
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.0040fd90
add esp, 0xc
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0xc18], ax
lea eax, [ebp - 0xc16]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x2418], ax
lea eax, [ebp - 0x2416]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x2c18], ax
lea eax, [ebp - 0x2c16]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x1c18], ax
lea eax, [ebp - 0x1c16]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x1418], ax
lea eax, [ebp - 0x1416]
push ebx
push eax
call fcn.0040fd90
add esp, 0xc
mov esi, 0x200
push esi
lea eax, [ebp - 0x418]
push 0xc7fff
push eax
lea edi, [ebp - 0x2c20]
call fcn.0040911a
add esp, 0xc
test eax, eax
je 0x409d8f
push esi
lea eax, [ebp - 0x218]
push 0x32000
push eax
call fcn.0040911a
add esp, 0xc
test eax, eax
je 0x409d8f
xor eax, eax
mov cl, byte [ebp + eax - 0x228]
cmp cl, byte [ebp + eax - 0x14]
jne 0x409d8f
inc eax
cmp eax, 0x10
jb 0x409bd2
cmp dword [ebp - 0x418], 3
jbe 0x409d8f
cmp dword [ebp - 0x218], 0x45464e49
jne 0x409d8f
push dword [ebp - 0x214]
call fcn.0040ae5e
pop ecx
push dword [ebp - 0x214]
lea edi, [ebp - 0x2c20]
push 0xc352b
push eax
mov dword [ebp - 0x2c1c], eax
call fcn.0040911a
add esp, 0xc
test eax, eax
je 0x409d7b
push 0x400
lea eax, [ebp - 0xc18]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x409d7b
lea eax, [ebp - 0xc18]
push eax
lea esi, [ebp - 0x2418]
call fcn.00401c9d
pop ecx
test eax, eax
je 0x409d7b
lea eax, [ebp - 0x2c18]
push eax
lea ecx, [ebp - 0xc18]
call fcn.00401c4e
pop ecx
test eax, eax
je 0x409d7b
lea eax, [ebp - 0x2c18]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x1c18]
push str._supdate__s
push eax
call fcn.0040af2c
lea eax, [ebp - 0x2c24]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x1c18]
push dword [ebp - 0x2c1c]
push eax
call fcn.004019ed
add esp, 0x20
test eax, eax
je 0x409d7b
lea eax, [ebp - 0x2c18]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x1418]
push str._s_tmp__s
push eax
call fcn.0040af2c
lea eax, [ebp - 0x1418]
push eax
call fcn.004018ee
add esp, 0x14
test eax, eax
je 0x409d0f
lea eax, [ebp - 0x1418]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x409d7b
lea eax, [ebp - 0x1418]
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.00401d52
pop ecx
pop ecx
test eax, eax
je 0x409d7b
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x1c18]
push eax
call fcn.00401d52
pop ecx
pop ecx
test eax, eax
je 0x409d7b
mov eax, dword [0x52c0d0]
cmp eax, ebx
je 0x409d57
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x52c0d0], ebx
push ebx
lea eax, [ebp - 0xc18]
push ebx
push eax
call fcn.00405348
add esp, 0xc
test eax, eax
je 0x409d7b
lea ecx, [ebp - 0x1418]
call fcn.00409892
test eax, eax
jne 0x409da0
cmp dword [ebp - 0x2c1c], ebx
je 0x409d8f
push dword [ebp - 0x2c1c]
call fcn.0040aef2
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ad48
leave
ret
cmp dword [ebp - 0x2c1c], ebx
je 0x409db4
push dword [ebp - 0x2c1c]
call fcn.0040aef2
pop ecx
push ebx
call fcn.0040b308
int3