Function at 0x46b9b0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ec893
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x5c4], eax
push ebx
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x5d8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5f0]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x5e0], 1
push 0x1ff
lea ecx, [esp + 0x1d9]
push ebx
push ecx
mov byte [esp + 0x1e0], bl
call sub.MSVCR90.dll_memset
push 0x1ff
lea edx, [esp + 0x3e5]
push ebx
push edx
mov byte [esp + 0x3ec], bl
call sub.MSVCR90.dll_memset
add esp, 0x18
push 0x5116d8
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 2
mov eax, dword [esp + 0x5e8]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x200
jg 0x46c3b2
jae 0x46ba7f
lea edx, [esp + 0x3d4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46ba75
lea eax, [esp + 0x5ec]
push eax
lea ecx, [esp + 0x20]
push 0x502b38
push ecx
call fcn.00410070
add esp, 0xc
mov byte [esp + 0x5e0], 3
mov eax, dword [eax]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46baa5
lea edi, [esp + 0x3d4]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46bab6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x5e0], 2
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x3d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x46c3b2
push 0
call dword [sym.imp.MSVCR90.dll__time64]
mov edi, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x5e8]
cmp dword [eax - 0xc], 0x200
ja 0x46c3a7
lea ecx, [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0x1dc]
push 0x5027d8
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
test byte [esp + 0x94], 0x10
jne 0x46c38a
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1d4]
push ecx
push edx
call fcn.00492210
add esp, 4
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x5e4], 4
mov byte [esp + 0x5e4], 2
call fcn.00465240
add esp, 4
test al, al
je 0x46bbbf
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edx
jmp 0x46c397
push str.tclog
lea ecx, [esp + 0x5f0]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x46bd58
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 5
or ebx, 1
push str.20100427.tclog
mov ecx, eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jle 0x46bc91
test edi, edi
je 0x46bc8a
push edi
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x5e0], 6
push str..tclog
push eax
lea ecx, [esp + 0x6c]
or ebx, 2
push ecx
mov dword [esp + 0x20], ebx
call fcn.00402a60
add esp, 0xc
mov esi, eax
mov dword [esp + 0x5e0], 7
lea edx, [esp + 0x1d4]
or ebx, 4
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x5e0], 8
or ebx, 8
mov dword [esp + 0x14], ebx
mov esi, dword [esi]
push esi
mov ecx, eax
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jl 0x46bc91
mov byte [esp + 0x13], 0
jmp 0x46bc96
mov byte [esp + 0x13], 1
mov dword [esp + 0x5e0], 7
test bl, 8
je 0x46bcb7
and ebx, 0xfffffff7
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 6
test bl, 4
je 0x46bcd8
and ebx, 0xfffffffb
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 5
test bl, 2
je 0x46bcf9
and ebx, 0xfffffffd
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 2
test bl, 1
je 0x46bd1a
and ebx, 0xfffffffe
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x13], 0
je 0x46bd58
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0xa
jle 0x46bd46
push eax
push str.DeleteFile_16__s_
push 8
call fcn.0043d500
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edx
jmp 0x46c397
push str.tdlog
lea ecx, [esp + 0x5f0]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x46bef9
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 9
or ebx, 0x10
push str.20100427.tdlog
mov ecx, eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jle 0x46be2c
test edi, edi
je 0x46be25
push edi
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x5e0], 0xa
push str..tdlog
push eax
lea ecx, [esp + 0x5c]
or ebx, 0x20
push ecx
mov dword [esp + 0x20], ebx
call fcn.00402a60
add esp, 0xc
mov esi, eax
mov dword [esp + 0x5e0], 0xb
lea edx, [esp + 0x1d4]
or ebx, 0x40
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x5e0], 0xc
push esi
or ebx, 0x80
push eax
mov dword [esp + 0x1c], ebx
call fcn.00469d90
add esp, 8
test al, al
jne 0x46be2c
mov byte [esp + 0x13], 0
jmp 0x46be31
mov byte [esp + 0x13], 1
mov dword [esp + 0x5e0], 0xb
test bl, bl
jns 0x46be54
and ebx, 0xffffff7f
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov esi, 0xa
mov dword [esp + 0x5e0], esi
test bl, 0x40
je 0x46be76
and ebx, 0xffffffbf
lea ecx, [esp + 0x54]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 9
test bl, 0x20
je 0x46be97
and ebx, 0xffffffdf
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 2
test bl, 0x10
je 0x46beb8
and ebx, 0xffffffef
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x13], 0
je 0x46bef9
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], esi
jle 0x46bd46
push eax
push str.DeleteFile_17__s_
push 8
call fcn.0043d500
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edx
jmp 0x46c397
push str.txlog
lea ecx, [esp + 0x5f0]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x46c0b9
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 0xd
or ebx, 0x100
push str.20100427.txlog
mov ecx, eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jle 0x46bfd6
test edi, edi
je 0x46bfcf
push edi
lea ecx, [esp + 0x6c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x5e0], 0xe
push str..txlog
push eax
lea ecx, [esp + 0x68]
or ebx, 0x200
push ecx
mov dword [esp + 0x20], ebx
call fcn.00402a60
add esp, 0xc
mov esi, eax
mov dword [esp + 0x5e0], 0xf
lea edx, [esp + 0x1d4]
or ebx, 0x400
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x5e0], 0x10
push esi
or ebx, 0x800
push eax
mov dword [esp + 0x1c], ebx
call fcn.00469d90
add esp, 8
test al, al
jne 0x46bfd6
mov byte [esp + 0x13], 0
jmp 0x46bfdb
mov byte [esp + 0x13], 1
mov dword [esp + 0x5e0], 0xf
test ebx, 0x800
je 0x46c002
and ebx, 0xfffff7ff
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 0xe
test ebx, 0x400
je 0x46c029
and ebx, 0xfffffbff
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 0xd
test ebx, 0x200
je 0x46c050
and ebx, 0xfffffdff
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 2
test ebx, 0x100
je 0x46c077
and ebx, 0xfffffeff
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x13], 0
je 0x46c0b9
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0xa
jle 0x46bd46
push eax
push str.DeleteFile_18__s_
push 8
call fcn.0043d500
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edx
jmp 0x46c397
push 0x5116d8
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 0x11
cmp dword [0x1043078], 0
jle 0x46c378
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.MSVCR90.dll__localtime64_s]
add esp, 8
test eax, eax
jne 0x46c103
mov edi, dword [esp + 0x84]
add edi, 0x76c
jmp 0x46c105
xor edi, edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.MSVCR90.dll__localtime64_s]
add esp, 8
test eax, eax
jne 0x46c126
mov esi, dword [esp + 0x80]
inc esi
jmp 0x46c128
xor esi, esi
sub esi, dword [0x1043078]
test esi, esi
jg 0x46c136
dec edi
add esi, 0xc
push str.tclog
lea ecx, [esp + 0x5f0]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x46c166
push str.tdlog
lea ecx, [esp + 0x5f0]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x46c201
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.MSVCR90.dll__localtime64_s]
mov ecx, dword [esp + 0x5f4]
neg eax
sbb eax, eax
push ecx
not eax
and eax, dword [esp + 0x88]
lea edx, [esp + 0x2c]
push eax
push esi
push edi
push str._04d_02d_02d._s
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x20
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 0x12
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
setle byte [esp + 0x13]
mov byte [esp + 0x5e0], 0x11
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x13], 0
je 0x46c201
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0xa
jle 0x46c347
push eax
push str.DeleteFile_19__s_
jmp 0x46c332
push str.TCLOG_
lea edx, [esp + 0x1d8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x46c2ad
push esi
push edi
lea eax, [esp + 0x28]
push str.TCLOG__04d__02d.Txt
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [esp + 0x1d4]
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 0x13
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00469db0
add esp, 8
mov byte [esp + 0x13], al
mov byte [esp + 0x5e0], 0x11
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x13], 0
je 0x46c2ad
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0xa
jle 0x46c29b
push eax
push str.DeleteFile_20__s_
push 8
call fcn.0043d500
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edx
jmp 0x46c354
push str.Patch_
lea eax, [esp + 0x1d8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x46c374
push esi
push edi
lea ecx, [esp + 0x28]
push str.Patch__04d_02d.log
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea edx, [esp + 0x1d4]
push edx
lea ecx, [esp + 0x50]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x5e0], 0x14
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00469db0
add esp, 8
mov byte [esp + 0x13], al
mov byte [esp + 0x5e0], 0x11
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp byte [esp + 0x13], 0
je 0x46c374
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0xa
jle 0x46c347
push eax
push str.DeleteFile_21__s_
push 8
call fcn.0043d500
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
mov byte [esp + 0x5e0], 2
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edi, dword [esp + 0x24]
jmp 0x46c39f
mov edi, dword [esp + 0x24]
mov byte [esp + 0x5e0], 2
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x94]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
jne 0x46bb18
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x5e0], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x5e0], 0
lea ecx, [esp + 0x5e8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x5e0], 0xffffffff
lea ecx, [esp + 0x5ec]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x5d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c4]
xor ecx, esp
call fcn.004e0148
add esp, 0x5d4
ret