Function at 0x40c180
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 [0x9a8064]
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 0x4234b0
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c20f
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 0x42348c
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, 0x423488
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 [0x9b73e0]
push ecx
lea edx, [esp + 0x220]
push 0x423474
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 [0x9b73e2]
push eax
lea ecx, [esp + 0x220]
push 0x42345c
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, 0x423458
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 [0x9b73e0]
add esp, 0x18
test ax, ax
je 0x40c8a9
mov dword [esp + 0x10], 0
jle 0x40c8a9
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, 0x423458
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 + 0x9b73e8]
lea eax, [esp + 0x21c]
movsx edx, word [ecx]
push edx
push 0x42343c
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 + 0x9b73e8]
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 0x42340c
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, 0x423458
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 + 0x9b73e8]
add ecx, 0xc
lea edx, [esp + 0x21c]
push ecx
push 0x4233f8
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, 0x423458
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 + 0x9b73e8]
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 0x4233c8
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, 0x423458
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 + 0x9b73e8]
movsx ecx, word [eax + 0xe0]
movsx edx, word [eax + 0xde]
push ecx
push edx
lea eax, [esp + 0x224]
push 0x4233b0
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, 0x423458
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 + 0x9b73e8]
lea eax, [esp + 0x21c]
movsx edx, word [ecx + 0xe2]
push edx
push 0x42339c
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, 0x423458
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 [0x9b73e0]
mov dword [esp + 0x10], eax
jl 0x40c3ef
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