Function at 0x40a410
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4503e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x46aa78]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x12c], eax
mov eax, dword [esi + 0x5c]
mov ebp, dword [eax]
cmp ebp, eax
push edi
mov dword [esp + 0x20], esi
je 0x40a7ac
mov eax, dword [esi + 0x24]
push 0
push eax
mov edi, 0x10
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40aa5c
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x13c], 0
call fcn.00420a40
mov ebx, eax
cmp dword [ebp + 0x24], edi
mov dword [esp + 0x1c], ebx
jb 0x40a499
mov eax, dword [ebp + 0x10]
jmp 0x40a49c
lea eax, [ebp + 0x10]
mov edx, dword [ebx]
push 0
push eax
mov ecx, ebx
call dword [edx]
test al, al
jne 0x40a519
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
cmp dword [ebp + 0x24], edi
jb 0x40a4ba
mov eax, dword [ebp + 0x10]
jmp 0x40a4bd
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0x24], edi
jb 0x40a4ce
mov eax, dword [ebp + 0x10]
jmp 0x40a4d1
lea eax, [ebp + 0x10]
push 0x104
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00430cf0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x24], edi
jb 0x40a506
mov eax, dword [ebp + 0x10]
jmp 0x40a509
lea eax, [ebp + 0x10]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
test al, al
je 0x40a7d3
mov edi, dword [ebp + 0x2c]
cmp edi, dword [ebp + 0x30]
mov dword [esp + 0x24], edi
je 0x40a71e
add edi, 4
lea esp, [esp]
mov eax, dword [esi + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a885
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
cmp dword [edi + 0x14], 0x10
mov byte [esp + 0x13c], 2
jb 0x40a569
mov eax, dword [edi]
jmp 0x40a56b
mov eax, edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00407c40
mov eax, dword [eax]
push eax
push 0x41
mov byte [esp + 0x144], 3
call fcn.004069d0
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00404b10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x13c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
push 0
push ebx
push 0x6401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [edi + 0x14], 0x10
jb 0x40a5dd
mov eax, dword [edi]
jmp 0x40a5df
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov esi, eax
test esi, esi
je 0x40a693
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x40a63c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
cmp eax, dword [edi + 0x1c]
jne 0x40a63c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00408800
lea eax, [ebx - 0x10]
mov byte [esp + 0x13c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a6f3
mov ecx, dword [ebp + 0x24]
mov eax, 0x10
cmp ecx, eax
jb 0x40a651
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
jmp 0x40a658
lea edx, [ebp + 0x10]
mov dword [esp + 0x28], edx
cmp dword [edi + 0x14], eax
jb 0x40a661
mov ebx, dword [edi]
jmp 0x40a663
mov ebx, edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
push str.Damaged_file___s__in__s___08X:_08X_
call fcn.004119d0
mov edx, dword [esi]
add esp, 0x14
mov ecx, esi
call dword [edx + 0x20]
mov ebx, dword [esp + 0x10]
jmp 0x40a6a1
call fcn.0041d250
cmp eax, 1
jne 0x40a893
cmp dword [ebp + 0x24], 0x10
jb 0x40a6ac
mov eax, dword [ebp + 0x10]
jmp 0x40a6af
lea eax, [ebp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040a0d0
test al, al
je 0x40a953
inc dword [esi + 0x78]
mov eax, dword [edi + 0x18]
push eax
mov ecx, esi
call fcn.00408800
lea eax, [ebx - 0x10]
mov byte [esp + 0x13c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x30]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add eax, 0x24
add edi, 0x24
cmp eax, ecx
mov dword [esp + 0x24], eax
jne 0x40a530
push ebx
call fcn.0041d890
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [ebp + 0x39]
test al, al
jne 0x40a7a3
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x39]
test al, al
jne 0x40a77f
mov eax, dword [ecx]
mov dl, byte [eax + 0x39]
test dl, dl
jne 0x40a77b
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x39]
test dl, dl
je 0x40a770
mov ebp, ecx
jmp 0x40a7a3
mov eax, dword [ebp + 4]
mov cl, byte [eax + 0x39]
test cl, cl
jne 0x40a7a1
lea esp, [esp]
cmp ebp, dword [eax + 8]
jne 0x40a7a1
mov ebp, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x39]
test cl, cl
je 0x40a790
mov ebp, eax
cmp ebp, dword [esi + 0x5c]
jne 0x40a44e
mov al, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
pop ebx
call fcn.00430cd9
add esp, 0x130
ret
call fcn.0041d260
push eax
lea ecx, [esp + 0x1c]
call fcn.00407c40
mov eax, dword [eax]
push eax
mov byte [esp + 0x140], 1
call fcn.0041d250
push eax
push 0x44
call fcn.004069d0
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00404b10
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x13c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x6404
push ecx
call ebx
push 0x49
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40a861
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00402510
mov edi, dword [esp + 0x14]
mov edx, dword [esi]
push 0
push edi
push 0x6401
push edx
call ebx
lea eax, [edi - 0x10]
jmp 0x40aa3a
push ebx
call fcn.0041d890
add esp, 4
jmp 0x40aa33
call fcn.0041d260
push eax
lea ecx, [esp + 0x1c]
call fcn.00407c40
mov eax, dword [eax]
push eax
mov byte [esp + 0x140], 4
call fcn.0041d250
push eax
push 0x44
call fcn.004069d0
add esp, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00404b10
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x13c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x6404
push ecx
call edi
push 0x49
call fcn.004069d0
mov esi, eax
add esp, 4
test esi, esi
je 0x40a925
push esi
call fcn.0043124b
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402510
mov esi, dword [esp + 0x10]
mov edx, dword [ebx]
push 0
push esi
push 0x6401
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041d890
lea eax, [esi - 0x10]
jmp 0x40aa11
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], 0x10
jb 0x40a962
mov eax, dword [eax + 4]
jmp 0x40a965
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00407c40
mov eax, dword [eax]
push eax
push 0x42
mov byte [esp + 0x144], 5
call fcn.004069d0
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00404b10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x13c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x6404
push ecx
call ebx
push 0x49
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40a9e8
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402510
mov edi, dword [esp + 0x10]
mov edx, dword [esi]
push 0
push edi
push 0x6401
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041d890
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x13c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40a7ae