Function at 0x40cb80
Capabilities:
Create directory
Move file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47625d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4174
call fcn.0046d800
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x4170], eax
push ebx
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x4188]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 0x140]
mov eax, edi
mov dword [esp + 0x24], edi
call fcn.00406be0
lea esi, [esp + 0x108]
mov eax, edi
mov dword [esp + 0x4190], 0
call fcn.00406c10
mov edi, 1
mov ebx, esi
mov byte [esp + 0x4190], 1
call fcn.0040ef50
mov ecx, dword [esp + 0x11c]
dec ecx
cmp eax, ecx
je 0x40cc20
push edi
mov eax, 0x497bc8
mov ecx, esi
call fcn.0040a010
mov eax, dword [esp + 0x144]
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x158], 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], 0x428220
mov dword [esp + 0x30], 0x428210
mov dword [esp + 0x54], 0x428220
mov dword [esp + 0x58], 0x428210
jae 0x40cc64
lea eax, [esp + 0x144]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x50], eax
cmp eax, 0xffffffff
jne 0x40ccea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
je 0x40ccea
mov ebx, 8
cmp dword [esp + 0x120], ebx
jb 0x40ccae
mov edx, dword [esp + 0x10c]
push edx
call fcn.0046190e
add esp, 4
xor eax, eax
cmp dword [esp + 0x158], ebx
mov word [esp + 0x10c], ax
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], 7
jb 0x40cce3
mov ecx, dword [esp + 0x144]
push ecx
call fcn.0046190e
add esp, 4
mov eax, esi
jmp 0x40d6c1
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x429030
mov dword [esp + 0x4c], 0x429060
mov dword [esp + 0x15c], 0x42b820
mov dword [esp + 0x160], 0x42b880
mov dword [esp + 0x164], 0x42b890
mov dword [esp + 0x168], 0x42b8f0
mov dword [esp + 0x16c], edx
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], edi
call fcn.00428290
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
call fcn.0042b160
mov esi, eax
add esp, 8
cmp esi, edi
je 0x40cdd0
lea edi, [esp + 0x2c]
lea eax, [esp + 0x64]
call fcn.00429260
xor edi, edi
mov dword [esp + 0x20], esi
cmp esi, edi
je 0x40ce01
cmp dword [esp + 0x120], 8
jb 0x40cdf2
mov edx, dword [esp + 0x10c]
push edx
call fcn.0046190e
add esp, 4
xor eax, eax
cmp dword [esp + 0x158], 8
jmp 0x40ccb7
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
dec eax
push eax
push edi
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x1c]
push 0xbd0
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x34], edi
mov dword [esp + 0x6c], edi
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push edi
push 0x64
push 0x65
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x14], edi
cmp dword [esp + 0x80], edi
jbe 0x40d5d7
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x1c], ecx
xor esi, esi
push 0xffffffffffffffff
xor edx, edx
mov edi, 7
push esi
lea eax, [esp + 0x110]
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], esi
mov word [esp + 0xdc], dx
call fcn.0040a0f0
mov byte [esp + 0x4190], 2
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0xf4], ax
push esi
lea eax, [esp + 0x110]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], esi
call fcn.0040a0f0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x4190], 3
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], esi
mov esi, dword [edi + ecx*4 + 4]
mov edx, ecx
sub esi, dword [edi + edx*4]
cmp esi, dword [esp + 0x40]
jbe 0x40cf2e
push ebx
call fcn.00462cf4
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x40], esi
test eax, eax
je 0x40d4d6
push eax
call fcn.00462dd1
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x40d4de
mov ebx, eax
mov esi, dword [esp + 0x14]
mov eax, dword [edi + esi*4]
mov ecx, dword [edi + esi*4 + 4]
sub ecx, eax
test ebx, ebx
je 0x40cf60
mov edx, dword [esp + 0xa8]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x40cf60
mov eax, ebx
sub edx, ebx
mov di, word [edx + eax]
mov word [eax], di
add eax, 2
sub ecx, 1
jne 0x40cf51
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x178]
push esi
push ecx
lea eax, [esp + 0x88]
call fcn.0042b580
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40d55b
xor edi, edi
cmp word [ebx], di
je 0x40d07a
mov esi, ebx
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x110]
lea ecx, [esp + 0x12c]
mov dword [esp + 0x144], 7
mov dword [esp + 0x140], 0
mov word [esp + 0x130], dx
call fcn.0040a0f0
mov byte [esp + 0x4190], 4
cmp word [esi], 0x2f
jne 0x40d049
xor eax, eax
mov word [esi], ax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d002
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x128]
call fcn.0040a010
cmp dword [esp + 0x13c], 8
mov eax, dword [esp + 0x128]
jae 0x40d038
lea eax, [esp + 0x128]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x5c
mov word [esi], cx
mov byte [esp + 0x4190], 3
cmp dword [esp + 0x13c], 8
jb 0x40d06b
mov edx, dword [esp + 0x128]
push edx
call fcn.0046190e
add esp, 4
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x40cfb4
mov eax, ebx
mov esi, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d084
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0xd4]
call fcn.0040a010
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
mov eax, dword [esp + 0xd4]
je 0x40d13b
cmp dword [esp + 0xe8], esi
jae 0x40d0c7
lea eax, [esp + 0xd4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x104], esi
jb 0x40d0e9
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
mov edi, 7
mov byte [esp + 0x4190], 1
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], 0
mov word [esp + 0xf0], dx
cmp dword [esp + 0xe8], esi
jb 0x40d12b
mov eax, dword [esp + 0xd4]
push eax
call fcn.0046190e
add esp, 4
mov dword [esp + 0xe4], 0
jmp 0x40d4a5
cmp dword [esp + 0xe8], esi
jae 0x40d14b
lea eax, [esp + 0xd4]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x3c], esi
cmp esi, 0xffffffff
jne 0x40d341
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d341
push esi
push 0
lea eax, [esp + 0xd8]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x40], 1
call fcn.0040a0f0
push 1
lea ebx, [esp + 0xd4]
call fcn.0040a280
push 1
mov esi, eax
call fcn.0040a280
mov ecx, dword [esp + 0xe4]
mov edx, ebx
sub ecx, esi
push edx
mov edx, eax
lea esi, [esp + 0x128]
call fcn.00409e00
lea ecx, [esp + 0xb4]
mov byte [esp + 0x4190], 5
call fcn.0040db60
push 0xffffffffffffffff
xor edi, edi
push edi
mov ecx, ebx
mov byte [esp + 0x4198], 6
call fcn.0040a0f0
mov ebx, 8
mov byte [esp + 0x4190], 5
cmp dword [esp + 0xcc], ebx
jb 0x40d21e
mov eax, dword [esp + 0xb8]
push eax
call fcn.0046190e
add esp, 4
push edi
lea ecx, [esp + 0x128]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xd8]
call fcn.00409f50
mov eax, dword [esp + 0xd4]
cmp dword [esp + 0xe8], ebx
jae 0x40d24d
lea eax, [esp + 0xd4]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x3c], esi
cmp esi, 0xffffffff
jne 0x40d320
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x40d320
cmp dword [esp + 0x13c], ebx
jb 0x40d29a
mov edx, dword [esp + 0x128]
push edx
call fcn.0046190e
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], edi
mov word [esp + 0x128], ax
cmp dword [esp + 0x104], ebx
jb 0x40d2d0
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
mov byte [esp + 0x4190], 1
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], edi
mov word [esp + 0xf0], dx
cmp dword [esp + 0xe8], ebx
jb 0x40d309
mov eax, dword [esp + 0xd4]
push eax
call fcn.0046190e
add esp, 4
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], edi
jmp 0x40d4ac
mov byte [esp + 0x4190], 3
cmp dword [esp + 0x13c], ebx
jb 0x40d341
mov edx, dword [esp + 0x128]
push edx
call fcn.0046190e
add esp, 4
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x3c]
add eax, ecx
push edx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.00428f20
add esp, 4
test eax, eax
jne 0x40d43c
cmp dword [esp + 0x18], ebx
jne 0x40d43c
cmp esi, 0xffffffff
je 0x40d3b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40d3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d3b9
lea esi, [esp + 0xec]
call fcn.00409d10
lea esi, [esp + 0xd0]
mov byte [esp + 0x4190], 1
call fcn.00409d10
mov ebx, dword [esp + 0x10]
jmp 0x40d4b6
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x1d], 0
mov esi, 8
je 0x40d3ea
mov eax, dword [esp + 0xd4]
cmp dword [esp + 0xe8], esi
jae 0x40d3df
lea eax, [esp + 0xd4]
mov ecx, dword [ecx + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x38], 0
je 0x40d429
mov ecx, dword [esp + 0xf0]
cmp dword [esp + 0x104], esi
jae 0x40d408
lea ecx, [esp + 0xf0]
mov eax, dword [esp + 0xd4]
cmp dword [esp + 0xe8], esi
jae 0x40d41f
lea eax, [esp + 0xd4]
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [eax + 0x150], edx
jmp 0x40d390
mov ebx, 8
cmp dword [esp + 0x104], ebx
jb 0x40d45a
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0046190e
add esp, 4
xor esi, esi
xor edx, edx
mov edi, 7
mov byte [esp + 0x4190], 1
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], esi
mov word [esp + 0xf0], dx
cmp dword [esp + 0xe8], ebx
jb 0x40d49a
mov eax, dword [esp + 0xd4]
push eax
call fcn.0046190e
add esp, 4
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], edi
xor ecx, ecx
mov word [esp + 0xd4], cx
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x20
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x80]
jb 0x40ce66
jmp 0x40d5d7
mov dword [esp + 0x10], 0
mov edi, 8
mov dword [esp + 0x20], 2
cmp dword [esp + 0x104], edi
jb 0x40d504
mov edx, dword [esp + 0xf0]
push edx
call fcn.0046190e
add esp, 4
xor ebx, ebx
xor eax, eax
mov esi, 7
mov byte [esp + 0x4190], 1
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], ax
cmp dword [esp + 0xe8], edi
jb 0x40d544
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
mov dword [esp + 0xe4], ebx
mov ebx, dword [esp + 0x10]
mov word [esp + 0xd4], dx
jmp 0x40d5d0
mov edi, 8
cmp dword [esp + 0x104], edi
jb 0x40d579
mov eax, dword [esp + 0xf0]
push eax
call fcn.0046190e
add esp, 4
xor ecx, ecx
mov esi, 7
mov byte [esp + 0x4190], 1
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], 0
mov word [esp + 0xf0], cx
cmp dword [esp + 0xe8], edi
jb 0x40d5bb
mov edx, dword [esp + 0xd4]
push edx
call fcn.0046190e
add esp, 4
xor eax, eax
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], ax
mov dword [esp + 0xe8], esi
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi]
push 0
dec edx
push edx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x150], ecx
push 0xbd1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [esp + 0x38]
lea edi, [esp + 0x34]
lea eax, [esp + 0x6c]
call fcn.00429260
push ebx
call fcn.00462cf4
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d64d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40d645
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d64d
mov dword [esp + 0x50], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push 0
push 0
push 0xbd2
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 8
cmp dword [esp + 0x120], esi
jb 0x40d684
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], 0
mov word [esp + 0x10c], dx
cmp dword [esp + 0x158], esi
jb 0x40d6bd
mov eax, dword [esp + 0x144]
push eax
call fcn.0046190e
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4170]
xor ecx, esp
call fcn.00461919
mov esp, ebp
pop ebp
ret 4