Function at 0x40a003
Capabilities:
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x423550
call fcn.00410238
sub esp, 0xc0
mov eax, dword [0x42eb80]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push 0xf
pop edi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x4c], edi
call fcn.00401ea0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edi
call fcn.00401ea0
mov eax, dword [ebp - 0x6c]
push 0xffffffffffffffff
push esi
add eax, 0x70
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004024b0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.004024b0
mov eax, dword [ebx + 0x14]
cmp eax, esi
mov edi, 0x424588
je 0x40a0b6
push ebx
lea eax, [ebp - 0xb0]
push edi
push eax
call fcn.00405eb9
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040253f
push esi
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.00401fc9
push dword [ebp - 0x70]
lea eax, [ebp - 0xb0]
push edi
push eax
call fcn.00405eb9
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040253f
push esi
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.00401fc9
mov eax, dword [ebp - 0x28]
push 0x10
pop ebx
cmp dword [ebp - 0x14], ebx
jae 0x40a0f9
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x28]
jae 0x40a10c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x28]
and eax, 0xfffffff8
cmp dword [ebp - 0x14], ebx
jae 0x40a121
lea ecx, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.004026d3
push 0x4250ac
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.004026f9
lea ecx, [ebp - 0x90]
call fcn.0040ec20
cmp dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 5
jae 0x40a160
lea eax, [ebp - 0x44]
push esi
push eax
lea ecx, [ebp - 0x90]
call fcn.0040ecb3
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
je 0x40a2a7
lea ecx, [ebp - 0x90]
call fcn.0040eb17
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x78], eax
call fcn.0040ebe7
test eax, eax
jne 0x40a29e
mov eax, dword [ebp - 0x90]
push 0x10
lea ecx, [ebp - 0x90]
call dword [eax + 0x38]
test eax, eax
jne 0x40a29e
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040ee39
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.0040eed8
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 7
jae 0x40a1e7
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040173a
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00401698
mov eax, dword [ebp - 0x70]
push dword [eax - 0xc]
lea ecx, [ebp - 0x68]
push eax
call fcn.0040159a
push esi
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call ebx
push str.DllRegisterServer
lea ecx, [ebp - 0xcc]
call fcn.00402827
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00408ae2
push eax
lea ecx, [ebp - 0xb0]
call fcn.00402827
mov ecx, dword [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xa
call fcn.004067d2
push 0xffffffffffffffff
push esi
push dword [ebp - 0x74]
mov ecx, eax
call fcn.004024b0
push esi
push 1
lea ecx, [ebp - 0xb0]
call fcn.00401fc9
push esi
push 1
lea ecx, [ebp - 0xcc]
call fcn.00401fc9
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401237
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401237
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00401237
cmp dword [ebp - 0x78], esi
jne 0x40a17b
lea ecx, [ebp - 0x90]
call fcn.0040ea47
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.004024b0
push str..ocx
lea ecx, [ebp - 0x48]
call fcn.004026f9
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x40a2da
lea eax, [ebp - 0x44]
push esi
push eax
lea ecx, [ebp - 0x90]
call fcn.0040ecb3
cmp eax, esi
je 0x40a41b
lea ecx, [ebp - 0x90]
call fcn.0040eb17
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x78], eax
call fcn.0040ebe7
test eax, eax
jne 0x40a412
mov eax, dword [ebp - 0x90]
push 0x10
lea ecx, [ebp - 0x90]
call dword [eax + 0x38]
test eax, eax
jne 0x40a412
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040ee39
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xb
call fcn.0040eed8
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
jae 0x40a35b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040173a
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.00401698
mov eax, dword [ebp - 0x6c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x68]
push eax
call fcn.0040159a
push esi
push dword [ebp - 0x68]
push dword [ebp - 0x70]
call ebx
push str.DllRegisterServer
lea ecx, [ebp - 0xb0]
call fcn.00402827
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.00408ae2
push eax
lea ecx, [ebp - 0xcc]
call fcn.00402827
mov ecx, dword [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xf
call fcn.004067d2
push 0xffffffffffffffff
push esi
push dword [ebp - 0x74]
mov ecx, eax
call fcn.004024b0
push esi
push 1
lea ecx, [ebp - 0xcc]
call fcn.00401fc9
push esi
push 1
lea ecx, [ebp - 0xb0]
call fcn.00401fc9
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401237
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00401237
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00401237
cmp dword [ebp - 0x78], esi
jne 0x40a2ef
lea ecx, [ebp - 0x90]
call fcn.0040ea47
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.0040ec44
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401fc9
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401fc9
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.00401fc9
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040f6e1
leave
ret 0xc