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 [0x968af8]
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 0x4264b0
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 0x42648c
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, 0x426488
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 [0xa3bb90]
push ecx
lea edx, [esp + 0x220]
push 0x426474
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 [0xa3bb92]
push eax
lea ecx, [esp + 0x220]
push 0x42645c
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, 0x426458
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 [0xa3bb90]
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, 0x426458
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 + 0xa3bb98]
lea eax, [esp + 0x21c]
movsx edx, word [ecx]
push edx
push 0x42643c
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 + 0xa3bb98]
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 0x42640c
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, 0x426458
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 + 0xa3bb98]
add ecx, 0xc
lea edx, [esp + 0x21c]
push ecx
push 0x4263f8
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, 0x426458
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 + 0xa3bb98]
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 0x4263c8
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, 0x426458
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 + 0xa3bb98]
movsx ecx, word [eax + 0xe0]
movsx edx, word [eax + 0xde]
push ecx
push edx
lea eax, [esp + 0x224]
push 0x4263b0
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, 0x426458
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 + 0xa3bb98]
lea eax, [esp + 0x21c]
movsx edx, word [ecx + 0xe2]
push edx
push 0x42639c
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, 0x426458
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 [0xa3bb90]
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