Function at 0x40dff0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x3b8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x5678]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x3cc]
mov ecx, 0xab
xor eax, eax
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
lea esi, [ebx + 0x114]
mov ecx, 0x50
lea edi, [esp + 0x124]
mov dword [esp + 0x10], esi
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3a4], eax
mov dword [esp + 0x3a8], eax
mov eax, dword [ebx + 0x134]
xor ecx, ecx
mov dword [ebp + 0x53f0], eax
mov dword [ebp + 0x53f4], ecx
mov eax, dword [ebx + 0x130]
mov dword [esp + 0x11c], 0x8994
cmp eax, ecx
je 0x40e08c
mov edx, dword [ebx + 0x134]
sub edx, eax
mov dword [ebp + 0x53f0], edx
mov dword [ebp + 0x53f4], ecx
push ecx
push ecx
mov dword [ebp + 0x53f8], ecx
push ecx
mov dword [ebp + 0x53fc], ecx
call fcn.004174d0
mov esi, dword [esp + 0x1c]
mov dword [ebp + 0x52e8], eax
lea edi, [ebp + 0x5198]
mov ecx, 0x50
lea eax, [ebp + 0x5404]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
cmp byte [eax], 0
je 0x40e0e8
mov cl, byte [ebp + 0x5508]
test cl, cl
je 0x40e0e8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [esp + 0x1c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40e237
mov ecx, dword [0x45745c]
mov dword [ebp + 0x560c], ecx
mov al, byte [0x457358]
test al, al
je 0x40e137
cmp al, 0x2a
je 0x40e137
lea edx, [esp + 0x18]
push 0x457358
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e17b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push 0x445344
push ecx
call edi
jmp 0x40e181
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.00427cb0
add esp, 8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e16b
lea ecx, [esp + 0x18]
push 0x445344
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x18]
push 0x4498ec
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x22dc]
lea esi, [ebp + 0x5508]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40e1d1
mov ecx, dword [ebp + 0x5694]
call fcn.00426250
push eax
call fcn.0043964f
mov edi, eax
add esp, 4
test edi, edi
je 0x40e1cb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.004303e9
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0x560c]
test eax, eax
je 0x40e21f
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e1f9
lea edx, [esp + 0x18]
push 0x445344
push edx
call edi
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e21f
lea edx, [esp + 0x18]
push 0x445344
push edx
call edi
lea eax, [esp + 0x18]
push eax
lea eax, [ebp + 0x5404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e630
add esp, 4
test eax, eax
jne 0x40e2ba
lea edx, [esp + 0x18]
add ebx, 0x10
push edx
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x11c]
push 0x2ac
xor esi, esi
push ecx
mov ecx, dword [ebp + 0x5694]
mov dword [esp + 0x128], eax
mov dword [esp + 0x3b0], esi
call fcn.004263b0
mov eax, dword [ebp + 0x5194]
cmp eax, esi
je 0x40e297
cmp eax, 0xffffffff
je 0x40e297
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x5194], esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3b8
ret 4
mov eax, dword [esp + 0x10]
test byte [eax], 0x10
je 0x40e322
add ebx, 0x10
lea ecx, [esp + 0x18]
push ebx
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e2ec
lea eax, [esp + 0x18]
push 0x445344
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e630
add esp, 4
test eax, eax
je 0x40e253
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x40e253
lea eax, [esp + 0x11c]
push 0x2ac
push eax
jmp 0x40e435
mov cl, byte [ebx + 0x10]
lea eax, [ebx + 0x10]
test cl, cl
je 0x40e334
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e352
lea eax, [esp + 0x18]
push 0x445344
push eax
call edi
mov cl, byte [ebx + 0x140]
lea eax, [ebx + 0x140]
test cl, cl
je 0x40e36a
lea ecx, [esp + 0x18]
push eax
push ecx
jmp 0x40e376
add ebx, 0x244
lea edx, [esp + 0x18]
push ebx
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [ebp + 0x52ec]
push eax
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 1
push 0
push 3
lea edx, [esp + 0x2c]
push 0xc0000000
push edx
call esi
test eax, eax
mov dword [ebp + 0x5194], eax
je 0x40e3b5
cmp eax, 0xffffffff
jne 0x40e4f6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
cmp ebx, 0xb7
je 0x40e3d0
cmp ebx, 0x50
jne 0x40e49e
mov eax, dword [esp + 0x3cc]
mov eax, dword [eax + 0x394]
test eax, eax
jne 0x40e44d
lea ecx, [esp + 0x264]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00428020
mov esi, dword [esp + 0x18]
mov eax, dword [ebp]
mov ecx, 0x50
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
add esp, 8
mov ecx, ebp
mov dword [ebp + 0x5194], 0
call dword [eax]
test eax, eax
je 0x40e253
lea ecx, [esp + 0x11c]
push 0x2ac
mov dword [esp + 0x124], ebx
push ecx
mov ecx, dword [ebp + 0x5694]
call fcn.004263b0
test eax, eax
je 0x40e253
jmp 0x40e29d
mov dword [ebp + 0x52e4], eax
add eax, 0xffffd94a
cmp eax, 0x1e
ja case.0x40e469.9912
xor edx, edx
mov dl, byte [eax + 0x40e608]
jmp dword [edx*4 + 0x40e5fc]
push 0
push 0
push 2
push 0
push 3
lea edx, [esp + 0x2c]
push 0xc0000000
push edx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x3c4], 1
call esi
mov dword [ebp + 0x5194], eax
mov eax, dword [ebp + 0x5194]
test eax, eax
je 0x40e4ad
cmp eax, 0xffffffff
jne 0x40e4df
lea eax, [esp + 0x18]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40e4c3
call edi
push 0
push 0
push 2
push 0
push 3
lea ecx, [esp + 0x2c]
push 0xc0000000
push ecx
call esi
mov dword [ebp + 0x5194], eax
mov eax, dword [ebp + 0x5194]
test eax, eax
je 0x40e5a5
cmp eax, 0xffffffff
je 0x40e5a5
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x40e253
mov ecx, dword [ebp + 0x5694]
lea eax, [esp + 0x11c]
push 0x2ac
push eax
call fcn.004263b0
test eax, eax
jne 0x40e29d
jmp 0x40e253
mov dword [esp + 0x120], ebx
mov dword [esp + 0x3a8], 1
jmp 0x40e55b
mov dword [esp + 0x120], ebx
mov dword [esp + 0x3ac], 1
mov dword [esp + 0x3a8], 0
mov eax, dword [ebp + 0x5194]
test eax, eax
je 0x40e571
cmp eax, 0xffffffff
je 0x40e571
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x5694]
lea eax, [esp + 0x11c]
push 0x2ac
push eax
mov dword [ebp + 0x5194], 0
call fcn.004263b0
test eax, eax
je 0x40e253
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40e2a2
call edi
test eax, eax
mov dword [esp + 0x120], eax
jne 0x40e5bd
mov dword [esp + 0x120], 2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x40e253
mov ecx, dword [ebp + 0x5694]
lea eax, [esp + 0x11c]
push 0x2ac
push eax
call fcn.004263b0
test eax, eax
je 0x40e253
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e29d