Function at 0x40c070
Capabilities:
Delete file

Disassembly:
sub esp, 0x4c8
xor eax, eax
push ebx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x97cfb8]
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x408]
add edx, 0x1cb
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x40c]
push str._sTUC_filePBAN.TXT
push eax
call fcn.004195cf
add esp, 0xc
lea ecx, [esp + 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x408]
push 0x430538
push edx
call fcn.00419a13
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c0f9
pop edi
pop ebx
add esp, 0x4c8
ret
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x20]
mov edx, dword [esp + 0x16]
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x214]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1a]
mov ecx, dword [esp + 0x18]
push ebp
and eax, 0xffff
push esi
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x22c]
push 0x430514
push ecx
call fcn.004195cf
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x430510
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419be3
push ebx
call fcn.00419a7d
add esp, 0x24
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
movsx ecx, word [0x97fdf8]
push ecx
lea edx, [esp + 0x220]
push 0x4304fc
push edx
call fcn.004195cf
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
movsx eax, word [0x97fdfa]
push eax
lea ecx, [esp + 0x220]
push 0x4304e4
push ecx
call fcn.004195cf
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419be3
push ebx
call fcn.00419a7d
mov ax, word [0x97fdf8]
add esp, 0x18
test ax, ax
je 0x40c786
mov dword [esp + 0x10], 0
jle 0x40c786
movsx ebp, word [esp + 0x10]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 1]
push ecx
push str._No._3d
push edx
call fcn.004195cf
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
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.00419be3
push ebx
call fcn.00419a7d
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0x18
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp*4 + 0x97fe00]
lea eax, [esp + 0x21c]
movsx edx, word [ecx]
push edx
push 0x4304c4
push eax
call fcn.004195cf
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp*4 + 0x97fe00]
movsx ecx, word [eax + 0xa]
movsx edx, word [eax + 8]
push ecx
push edx
movsx ecx, word [eax + 6]
movsx edx, word [eax + 4]
movsx eax, word [eax + 2]
push ecx
push edx
push eax
lea ecx, [esp + 0x230]
push 0x430494
push ecx
call fcn.004195cf
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 edx, [esp + 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
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 + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419be3
push ebx
call fcn.00419a7d
add esp, 0x28
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp*4 + 0x97fe00]
add ecx, 0xc
lea edx, [esp + 0x21c]
push ecx
push 0x430480
push edx
call fcn.004195cf
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
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.00419be3
push ebx
call fcn.00419a7d
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0x18
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp*4 + 0x97fe00]
lea ecx, [eax + 0xdc]
lea edx, [eax + 0xda]
push ecx
push edx
lea ecx, [eax + 0xd8]
lea edx, [eax + 0xd6]
movsx eax, word [eax + 0xd4]
push ecx
push edx
push eax
lea ecx, [esp + 0x230]
push 0x430450
push ecx
call fcn.004195cf
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
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 edx, [esp + 0x44]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
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 + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419be3
push ebx
call fcn.00419a7d
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x50]
add esp, 0x28
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp*4 + 0x97fe00]
movsx ecx, word [eax + 0xe0]
movsx edx, word [eax + 0xde]
push ecx
push edx
lea eax, [esp + 0x224]
push str.___
push eax
call fcn.004195cf
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
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 edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
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 ebx
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00419be3
push ebx
call fcn.00419a7d
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x44]
add esp, 0x1c
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp*4 + 0x97fe00]
lea eax, [esp + 0x21c]
movsx edx, word [ecx + 0xe2]
push edx
push 0x430424
push eax
call fcn.004195cf
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4304e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419be3
push ebx
call fcn.00419a7d
mov eax, dword [esp + 0x28]
add esp, 0x18
inc eax
cmp ax, word [0x97fdf8]
mov dword [esp + 0x10], eax
jl 0x40c2df
push ebx
call fcn.00419903
add esp, 4
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x4c8
ret