Function at 0x402210
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4251fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x118]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12c]
push edi
push eax
push ecx
push edx
push esi
call fcn.00402820
mov ebx, dword [esp + 0x13c]
push ebx
call fcn.004034d0
push 0x42f15c
push ebx
call fcn.0040b7a0
mov ebp, eax
push ebp
push ebx
call fcn.00403730
mov eax, dword [0x42f8cc]
mov dword [esp + 0x34], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x144], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ldcab.ldx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404f20
add esp, 0x28
test eax, eax
jne 0x40231e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.LdxFile__s__Not_Exists
push edx
call fcn.0041c74a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x433191
push 0
push eax
call fcn.00407170
push ebp
lea ecx, [esp + 0x18]
push 1
push ecx
push ebx
call fcn.00403030
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x140]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f128
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404f20
add esp, 0x14
test eax, eax
jne 0x4023c6
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.LdxFile__s__Not_Exists
push edx
call fcn.0041c74a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x433191
push 0
push eax
call fcn.00407170
push ebp
lea ecx, [esp + 0x18]
push 1
push ecx
push ebx
call fcn.00403030
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ldcab.lddat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404f20
add esp, 4
test eax, eax
jne 0x40247c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.LdxFile__s__Not_Exists
push edx
call fcn.0041c74a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x433191
push 0
push eax
call fcn.00407170
push ebp
lea ecx, [esp + 0x18]
push 1
push ecx
push ebx
call fcn.00403030
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
je 0x4024a5
push ebp
call fcn.0040b6f2
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041d10e
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret