Function at 0x40a360
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5feafc
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
xor esi, esi
lea edi, [esp + 0x14]
mov dword [esp + 0x494], esi
call fcn.0047ac70
mov byte [esp + 0x494], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x40a3fa
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x40a5ed
cmp ecx, eax
jg 0x40a5ed
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x40a3fa
push 0x5c
call fcn.0040af90
push 0xa
push str.SyncBase_
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
mov word [esp + 0x47c], 0x5c
mov dword [esp + 0x480], esi
mov dword [esp + 0x484], esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, 0x625738
mov byte [esp + 0x49c], 2
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x494], 3
mov eax, dword [eax]
lea esi, [esp + 0x24]
call fcn.0040ad20
mov esi, eax
mov byte [esp + 0x494], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a47f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp esi, ebx
je 0x40a552
mov eax, dword [esp + 0x484]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x40a528
mov ecx, dword [esp + 0x24]
shr ecx, 4
and ecx, 1
je 0x40a4c9
cmp word [esp + 0x50], 0x2e
jne 0x40a4c9
mov dx, word [esp + 0x52]
cmp dx, bx
je 0x40a528
cmp dx, 0x2e
jne 0x40a4c9
cmp word [esp + 0x54], bx
je 0x40a528
cmp ecx, ebx
je 0x40a528
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.0040ab90
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a4e1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040aee0
push 0x5c
lea edi, [esp + 0x1c]
call fcn.0040af90
push 0xb
push 0x62573c
mov eax, edi
push eax
call fcn.0040aee0
mov ebp, dword [esp + 0x18]
push ebp
call esi
mov eax, dword [esp + 0x484]
mov ecx, dword [esp + 0x480]
cmp ecx, ebx
je 0x40a559
cmp eax, ebx
je 0x40a559
lea edx, [esp + 0x24]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
mov dword [esp + 0x484], eax
jne 0x40a49e
mov ecx, dword [esp + 0x480]
cmp ecx, ebx
mov dword [esp + 0x484], ebx
je 0x40a577
cmp ecx, 0xffffffff
je 0x40a577
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x480], ebx
mov byte [esp + 0x494], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a59e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x494], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.005d28b3
add esp, 0x484
ret
push 0x80070057
call fcn.00403650
int3