Function at 0x40c120
Capabilities:
Delete file

Disassembly:
sub esp, 0x4c8
xor eax, eax
push ebx
mov dword [esp + 8], eax
push ebp
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
push edi
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x951934]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x40c]
add edx, 0x1cb
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x410]
push str._sTUC_filePBAN.TXT
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x40c]
push 0x4174a8
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c1af
pop edi
pop ebp
pop ebx
add esp, 0x4c8
ret
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x1a]
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
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 0x417484
push ecx
call ebp
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 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
rep movsb byte es:[edi], byte [esi]
mov edi, 0x417480
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 + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x4c]
add esp, 0x24
rep stosd dword es:[edi], eax
mov ecx, 0x7d
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
movsx ecx, word [0x96a988]
push ecx
lea edx, [esp + 0x220]
push 0x41746c
push edx
call ebp
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
movsx eax, word [0x96a98a]
push eax
lea ecx, [esp + 0x220]
push 0x417454
push ecx
call ebp
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
mov ax, word [0x96a988]
add esp, 0x18
test ax, ax
je 0x40c849
mov dword [esp + 0x10], 0
jle 0x40c849
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 dword [sym.imp.MSVCRT.dll_sprintf]
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
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 + 0x96a990]
lea eax, [esp + 0x21c]
movsx edx, word [ecx]
push edx
push 0x417434
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
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 + 0x96a990]
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 0x417404
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
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 + 0x96a990]
add ecx, 0xc
lea edx, [esp + 0x21c]
push ecx
push 0x4173f0
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
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 + 0x96a990]
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 0x4173c0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
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 + 0x96a990]
movsx ecx, word [eax + 0xe0]
movsx edx, word [eax + 0xde]
push ecx
push edx
lea eax, [esp + 0x224]
push str.___
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
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 + 0x96a990]
lea eax, [esp + 0x21c]
movsx edx, word [ecx + 0xe2]
push edx
push 0x417394
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
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, 0x417450
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 dword [sym.imp.MSVCRT.dll_fputs]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
mov eax, dword [esp + 0x28]
add esp, 0x18
inc eax
cmp ax, word [0x96a988]
mov dword [esp + 0x10], eax
jl 0x40c38f
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x4c8
ret