Function at 0x40a0d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x450376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x46aa78]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 0x44]
mov ebx, 0x10
cmp eax, ebx
push esi
push edi
jb 0x40a10e
mov eax, dword [ebp + 0x30]
jmp 0x40a111
lea eax, [ebp + 0x30]
push 0x104
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00430cf0
mov esi, dword [esp + 0x174]
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp eax, ebx
jb 0x40a137
mov eax, dword [esi + 4]
jmp 0x40a13a
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40a16e
lea edx, [esp + 0x48]
push edx
call fcn.00411e20
add esp, 4
test al, al
jne 0x40a2c1
jmp 0x40a33a
mov edi, dword [esp + 0x160]
mov eax, edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a190
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004023a0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov ecx, ebp
mov dword [esp + 0x164], 0
call fcn.00409c30
mov bl, al
mov eax, dword [esp + 0x28]
neg bl
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0x158], 0xffffffff
jb 0x40a1ea
mov edx, dword [esp + 0x14]
push edx
call fcn.00446915
add esp, 4
test bl, bl
je 0x40a2bc
xor ebx, ebx
mov eax, edi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a210
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.004023a0
push 1
push 0x456804
lea ecx, [esp + 0x34]
mov dword [esp + 0x160], 1
call fcn.00407730
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x38]
call fcn.00407640
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x30]
jae 0x40a261
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push ecx
push eax
push esi
mov ecx, ebp
call fcn.004084f0
test al, al
mov eax, dword [esp + 0x44]
jne 0x40a28f
cmp eax, edi
jb 0x40a288
mov edx, dword [esp + 0x30]
push edx
call fcn.00446915
add esp, 4
xor al, al
jmp 0x40a33a
cmp eax, edi
mov dword [esp + 0x158], 0xffffffff
jb 0x40a2ab
mov eax, dword [esp + 0x30]
push eax
call fcn.00446915
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], 0
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
lea ebp, [esi + 4]
jb 0x40a2ce
mov eax, dword [ebp]
jmp 0x40a2d0
mov eax, ebp
mov edi, dword [esp + 0x164]
mov edx, dword [edi]
push 1
push eax
mov ecx, edi
call dword [edx + 0x1c]
cmp dword [esi + 0x18], ebx
jb 0x40a2eb
mov eax, dword [ebp]
jmp 0x40a2ed
mov eax, ebp
mov edx, dword [edi]
push 1
push 0
push eax
push 0
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call dword [edx + 0x18]
test al, al
jne 0x40a313
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x40a33a
cmp dword [esi + 0x18], ebx
jb 0x40a31d
mov eax, dword [ebp]
jmp 0x40a31f
mov eax, ebp
push eax
push str.Repair__s
call fcn.004119d0
add esp, 8
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x140]
pop ebx
call fcn.00430cd9
add esp, 0x14c
ret 0xc