Function at 0x40de80
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 0x40df1c
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.00417610
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 0x40df78
mov cl, byte [ebp + 0x5508]
test cl, cl
je 0x40df78
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 0x40e0c7
mov ecx, dword [0x4584ec]
mov dword [ebp + 0x560c], ecx
mov al, byte [0x4583e8]
test al, al
je 0x40dfc7
cmp al, 0x2a
je 0x40dfc7
lea edx, [esp + 0x18]
push 0x4583e8
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 0x40e00b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push 0x446350
push ecx
call edi
jmp 0x40e011
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.00427eb0
add esp, 8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40dffb
lea ecx, [esp + 0x18]
push 0x446350
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x18]
push 0x44a8f8
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 0x40e061
mov ecx, dword [ebp + 0x5694]
call fcn.004263f0
push eax
call fcn.00439c0a
mov edi, eax
add esp, 4
test edi, edi
je 0x40e05b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.00430919
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0x560c]
test eax, eax
je 0x40e0af
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x17], 0x5c
je 0x40e089
lea edx, [esp + 0x18]
push 0x446350
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 0x40e0af
lea edx, [esp + 0x18]
push 0x446350
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.0040e4c0
add esp, 4
test eax, eax
jne 0x40e14a
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.00426550
mov eax, dword [ebp + 0x5194]
cmp eax, esi
je 0x40e127
cmp eax, 0xffffffff
je 0x40e127
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 0x40e1b2
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 0x40e17c
lea eax, [esp + 0x18]
push 0x446350
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e4c0
add esp, 4
test eax, eax
je 0x40e0e3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x40e0e3
lea eax, [esp + 0x11c]
push 0x2ac
push eax
jmp 0x40e2c5
mov cl, byte [ebx + 0x10]
lea eax, [ebx + 0x10]
test cl, cl
je 0x40e1c4
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 0x40e1e2
lea eax, [esp + 0x18]
push 0x446350
push eax
call edi
mov cl, byte [ebx + 0x140]
lea eax, [ebx + 0x140]
test cl, cl
je 0x40e1fa
lea ecx, [esp + 0x18]
push eax
push ecx
jmp 0x40e206
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 0x40e245
cmp eax, 0xffffffff
jne 0x40e386
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
cmp ebx, 0xb7
je 0x40e260
cmp ebx, 0x50
jne 0x40e32e
mov eax, dword [esp + 0x3cc]
mov eax, dword [eax + 0x394]
test eax, eax
jne 0x40e2dd
lea ecx, [esp + 0x264]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00428220
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 0x40e0e3
lea ecx, [esp + 0x11c]
push 0x2ac
mov dword [esp + 0x124], ebx
push ecx
mov ecx, dword [ebp + 0x5694]
call fcn.00426550
test eax, eax
je 0x40e0e3
jmp 0x40e12d
mov dword [ebp + 0x52e4], eax
add eax, 0xffffd94a
cmp eax, 0x1e
ja case.0x40e2f9.9912
xor edx, edx
mov dl, byte [eax + 0x40e498]
jmp dword [edx*4 + 0x40e48c]
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 0x40e33d
cmp eax, 0xffffffff
jne 0x40e36f
lea eax, [esp + 0x18]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40e353
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 0x40e435
cmp eax, 0xffffffff
je 0x40e435
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x40e0e3
mov ecx, dword [ebp + 0x5694]
lea eax, [esp + 0x11c]
push 0x2ac
push eax
call fcn.00426550
test eax, eax
jne 0x40e12d
jmp 0x40e0e3
mov dword [esp + 0x120], ebx
mov dword [esp + 0x3a8], 1
jmp 0x40e3eb
mov dword [esp + 0x120], ebx
mov dword [esp + 0x3ac], 1
mov dword [esp + 0x3a8], 0
mov eax, dword [ebp + 0x5194]
test eax, eax
je 0x40e401
cmp eax, 0xffffffff
je 0x40e401
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.00426550
test eax, eax
je 0x40e0e3
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40e132
call edi
test eax, eax
mov dword [esp + 0x120], eax
jne 0x40e44d
mov dword [esp + 0x120], 2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
je 0x40e0e3
mov ecx, dword [ebp + 0x5694]
lea eax, [esp + 0x11c]
push 0x2ac
push eax
call fcn.00426550
test eax, eax
je 0x40e0e3
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e12d