Function at 0x471e40
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d3e31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push ebp
push esi
push edi
mov edi, vtable.Table_char_.0
push 0x80
mov dword [esp + 0x38], edi
call fcn.004bd49b
xor esi, esi
mov ebp, 0x1f
mov ebx, 0x40
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
push 0x80
mov dword [esp + 0x2cc], esi
mov dword [esp + 0x20], edi
call fcn.004bd49b
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x2cc]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xb8]
push eax
push ecx
mov ebp, 1
push 0x100
push edi
mov byte [esp + 0x2d4], 1
mov dword [esp + 0x54], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x14]
mov ebx, 0x5c
cmp eax, esi
je 0x471f16
mov byte [eax], 0
mov eax, dword [esp + 0x14]
cmp byte [eax - 1], bl
jne 0x471f16
cmp byte [eax - 2], 0x3a
je 0x471f16
mov byte [eax - 1], 0
push ebx
push edi
call fcn.004a7c73
add esp, 8
cmp eax, esi
jne 0x471f33
push 0x3a
push edi
call fcn.004a7c73
add esp, 8
cmp eax, esi
je 0x471f3c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
jmp 0x471f3e
mov eax, edi
lea edx, [esp + 0x1bc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0xb7]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, bl
je 0x471f7b
lea ecx, [esp + 0xb8]
push 0x4ed924
push ecx
call edi
lea edx, [esp + 0xb8]
push 0x4ed9d0
push edx
call edi
push ebp
lea ecx, [esp + 0x60]
call fcn.004b6cd1
mov eax, dword [0x4debf4]
lea ecx, [esp + 0xb8]
push eax
push 0x21
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x2d0], 2
call fcn.004b6dc3
push 0x1388
mov dword [esp + 0x58], esi
call fcn.004bd49b
mov edx, dword [esp + 0x60]
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [edx + 4]
test byte [esp + eax + 0x64], 6
jne 0x4722f5
lea ecx, [esp + 0x5c]
call fcn.004b6e38
cmp al, 0x22
mov byte [ebx], al
jne 0x472009
push 0x22
push 0x101
push ebx
lea ecx, [esp + 0x68]
call fcn.004b6eb5
lea ecx, [esp + 0x5c]
call fcn.004b6e38
jmp 0x47201d
push 0x20
lea ecx, [ebx + 1]
push 0x101
push ecx
lea ecx, [esp + 0x68]
call fcn.004b6eb5
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x64], 1
jne 0x4722f5
test ebx, ebx
je 0x47203c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x47203e
xor eax, eax
inc eax
push eax
call fcn.004bd49b
mov esi, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x58], esi
mov byte [esi], 0
je 0x47205d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x4720db
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4720c7
mov edx, dword [esp + 0x48]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x60]
add esp, 8
add eax, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x1bc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, dword [esp + 0x54]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x5c]
inc esi
or edx, esi
mov dword [esp + 0x54], edx
call fcn.004b6e38
cmp eax, 0x20
jne 0x472117
lea ecx, [esp + 0x5c]
call fcn.004b6e38
cmp eax, 0x20
je 0x472109
cmp eax, 0xffffffff
je 0x472126
push eax
lea ecx, [esp + 0x60]
call fcn.004b74ad
push 0xa
push 0x1387
push ebx
lea ecx, [esp + 0x68]
call fcn.004b6eb5
lea ecx, [esp + 0x5c]
call fcn.004b6e38
push 0xa
push ebx
call fcn.004a8857
add esp, 8
test eax, eax
je 0x472152
mov byte [eax], 0
test esi, esi
je 0x472237
mov esi, dword [esp + 0x2d0]
test esi, esi
je 0x4721da
cmp byte [esi], 0
je 0x4721da
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004bd49b
mov ebx, eax
mov eax, dword [esp + 0x2dc]
add esp, 4
test eax, eax
je 0x472192
push ebx
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
jmp 0x47219a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x4722df
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x4722cb
mov ecx, dword [esp + 0x2c]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004bd49b
mov ebp, eax
mov eax, dword [esp + 0x28]
lea ecx, [eax*4 + 4]
jmp 0x472298
mov ecx, dword [esp + 0x3c]
lea esi, [ecx - 1]
test esi, esi
jl 0x4722df
cmp esi, ecx
jge 0x4722df
mov eax, dword [esp + 0x44]
test eax, eax
je 0x47220d
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + esi*4]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x40]
add esp, 4
lea edx, [ecx - 1]
mov eax, esi
cmp esi, edx
jge 0x47222d
mov ecx, dword [esp + 0x38]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esp + 0x3c]
lea edx, [ecx - 1]
cmp eax, edx
jl 0x472216
dec ecx
mov dword [esp + 0x3c], ecx
jmp 0x4722df
test ebx, ebx
je 0x472244
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x472246
xor eax, eax
inc eax
push eax
call fcn.004bd49b
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
mov byte [ebx], 0
je 0x472265
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x4722df
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4722cb
mov edx, dword [esp + 0x2c]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x28]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov esi, dword [esp + 0x20]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x64], 7
je 0x471fde
lea ecx, [esp + 0x5c]
call fcn.004b6e05
push ebx
call fcn.004bd4c4
mov eax, dword [esp + 0x58]
add esp, 4
test eax, eax
jne 0x472481
mov esi, dword [esp + 0x2d0]
test esi, esi
je 0x472481
lea eax, [esp + 0x1bc]
test eax, eax
je 0x47233d
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x47233f
xor eax, eax
inc eax
push eax
call fcn.004bd49b
mov ebx, eax
lea edx, [esp + 0x1c0]
add esp, 4
test edx, edx
mov byte [ebx], 0
je 0x472368
lea eax, [esp + 0x1bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x4723e9
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4723d5
mov edx, dword [esp + 0x48]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x2d8]
add esp, 8
add eax, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004bd49b
add esp, 4
mov ebx, eax
push esi
push ebx
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x472481
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x47246d
mov edx, dword [esp + 0x2c]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x472559
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.004b6d82
lea ecx, [esp + 0x68]
call fcn.004b6c58
mov eax, dword [esp + 0x28]
mov edi, vtable.Table_char_.0
test eax, eax
mov byte [esp + 0x2c4], 0
mov dword [esp + 0x18], edi
je 0x4724fd
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x4724fd
cmp esi, eax
jge 0x4724e9
test esi, esi
jl 0x4724e9
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
jmp 0x4724eb
xor eax, eax
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x24]
add esp, 4
inc esi
cmp esi, eax
jl 0x4724dc
mov eax, dword [esp + 0x1c]
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
mov dword [esp + 0x2c4], 0xffffffff
mov dword [esp + 0x34], edi
je 0x472547
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x472547
push esi
lea ecx, [esp + 0x38]
call fcn.0049c140
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x40]
add esp, 4
inc esi
cmp esi, eax
jl 0x47252b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004bd4c4
add esp, 4
jmp 0x472874
mov eax, dword [esp + 0x2d4]
lea edx, [esp + 0xb8]
neg eax
sbb eax, eax
and eax, 2
push eax
push edx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x472638
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.004b6d82
lea ecx, [esp + 0x68]
call fcn.004b6c58
mov eax, dword [esp + 0x28]
mov edi, vtable.Table_char_.0
test eax, eax
mov byte [esp + 0x2c4], 0
mov dword [esp + 0x18], edi
je 0x4725da
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x4725da
push esi
lea ecx, [esp + 0x1c]
call fcn.0049c140
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x24]
add esp, 4
inc esi
cmp esi, eax
jl 0x4725be
mov eax, dword [esp + 0x1c]
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
mov dword [esp + 0x2c4], 0xffffffff
mov dword [esp + 0x34], edi
je 0x472624
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x472624
push esi
lea ecx, [esp + 0x38]
call fcn.0049c140
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x40]
add esp, 4
inc esi
cmp esi, eax
jl 0x472608
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004bd4c4
add esp, 4
xor eax, eax
jmp 0x472879
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x47276f
cmp esi, eax
jge 0x47276f
test esi, esi
jl 0x47276f
mov edx, dword [esp + 0x38]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x47276f
xor ecx, ecx
test esi, esi
setl cl
dec ecx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
cmp esi, eax
jge 0x47268f
test esi, esi
jl 0x47268f
mov edx, dword [esp + 0x38]
mov eax, dword [edx + esi*4]
jmp 0x472691
xor eax, eax
push 0x20
push eax
call fcn.004a8857
mov edi, eax
add esp, 8
neg edi
sbb edi, edi
mov byte [esp + 0x13], 0x22
neg edi
je 0x4726bd
mov ebp, dword [sym.imp.KERNEL32.dll__lwrite]
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call ebp
jmp 0x4726c3
mov ebp, dword [sym.imp.KERNEL32.dll__lwrite]
cmp esi, dword [esp + 0x3c]
jge 0x4726d6
test esi, esi
jl 0x4726d6
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + esi*4]
jmp 0x4726d8
xor eax, eax
mov edx, dword [esp + 0x54]
push edx
push eax
push ebx
call ebp
cmp eax, dword [esp + 0x54]
jl 0x47276f
test edi, edi
je 0x4726f9
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call ebp
lea ecx, [esp + 0x53]
push 1
push ecx
push ebx
mov byte [esp + 0x5f], 0x20
call ebp
cmp eax, 1
jl 0x47276f
cmp esi, dword [esp + 0x20]
jge 0x47273e
test esi, esi
jl 0x47273e
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + esi*4]
test edi, edi
je 0x47273e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebp
jl 0x47276f
mov ebp, dword [sym.imp.KERNEL32.dll__lwrite]
mov ax, word [0x4edff8]
mov cl, byte [0x4edffa]
lea edx, [esp + 0x14]
push 2
push edx
push ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
call ebp
cmp eax, 2
jl 0x47276f
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x47264e
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
or edi, 0xffffffff
cmp eax, edi
jne 0x4727f9
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.004b6d82
lea ecx, [esp + 0x68]
call fcn.004b6c58
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2c4], 0
test eax, eax
mov dword [esp + 0x18], vtable.Table_char_.0
je 0x4727d5
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x4727d5
push esi
lea ecx, [esp + 0x1c]
call fcn.0049c140
push eax
call fcn.004bd4c4
mov eax, dword [esp + 0x24]
add esp, 4
inc esi
cmp esi, eax
jl 0x4727b9
mov eax, dword [esp + 0x1c]
push eax
call fcn.004bd4c4
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c4], edi
call fcn.00407a30
xor eax, eax
jmp 0x472879
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x2d4]
test ecx, ecx
je 0x472823
test al, 2
jne 0x472839
or al, 2
lea edx, [esp + 0xb8]
push eax
push edx
jmp 0x472833
test al, 2
je 0x472839
xor eax, 2
push eax
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x68]
mov byte [esp + 0x2c4], 1
call fcn.004b6d82
lea ecx, [esp + 0x68]
call fcn.004b6c58
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c4], 0
call fcn.00407a30
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c4], edi
call fcn.00407a30
mov eax, 1
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b8
ret