Function at 0x40f8b0
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 0x49322d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4194
call fcn.00488970
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x4190], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x41a8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 0x160]
mov eax, edi
mov dword [esp + 0x20], edi
call fcn.00407690
lea esi, [esp + 0x10c]
mov eax, edi
mov dword [esp + 0x41b0], 0
call fcn.004076c0
mov edi, 1
mov ebx, esi
mov byte [esp + 0x41b0], 1
call fcn.00411db0
mov ecx, dword [esp + 0x120]
dec ecx
cmp eax, ecx
je 0x40f950
push edi
mov eax, 0x4bc8c0
mov ecx, esi
call fcn.0040baa0
mov eax, dword [esp + 0x164]
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x178], 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], 0x42b830
mov dword [esp + 0x2c], 0x42b850
mov dword [esp + 0x54], 0x42b830
mov dword [esp + 0x58], 0x42b850
jae 0x40f994
lea eax, [esp + 0x164]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x50], eax
cmp eax, 0xffffffff
jne 0x40fa1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
je 0x40fa1a
mov ebx, 8
cmp dword [esp + 0x124], ebx
jb 0x40f9de
mov edx, dword [esp + 0x110]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
cmp dword [esp + 0x178], ebx
mov word [esp + 0x110], ax
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], 7
jb 0x40fa13
mov ecx, dword [esp + 0x164]
push ecx
call fcn.00479461
add esp, 4
mov eax, esi
jmp 0x4104ed
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x42c650
mov dword [esp + 0x4c], 0x42c680
mov dword [esp + 0x17c], 0x42ee40
mov dword [esp + 0x180], 0x42eea0
mov dword [esp + 0x184], 0x42eeb0
mov dword [esp + 0x188], 0x42ef10
mov dword [esp + 0x18c], edx
mov dword [esp + 0x194], edi
mov dword [esp + 0x190], edi
call fcn.0042b8b0
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x30]
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.0042e780
mov esi, eax
add esp, 8
cmp esi, edi
je 0x40fb00
lea edi, [esp + 0x28]
lea eax, [esp + 0x64]
call fcn.0042c880
xor edi, edi
mov dword [esp + 0x24], esi
cmp esi, edi
je 0x40fb31
cmp dword [esp + 0x124], 8
jb 0x40fb22
mov edx, dword [esp + 0x110]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
cmp dword [esp + 0x178], 8
jmp 0x40f9e7
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x20]
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 + 0x3c], 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 0x410371
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 + 0x114]
lea ecx, [esp + 0xdc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], dx
call fcn.0040bb80
mov byte [esp + 0x41b0], 2
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0xf8], ax
push esi
lea eax, [esp + 0x114]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], esi
call fcn.0040bb80
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x41b0], 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 0x40fc5e
push ebx
call fcn.0047a847
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x40], esi
test eax, eax
je 0x410275
push eax
call fcn.0047a924
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x41027d
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 0x40fc90
mov edx, dword [esp + 0xa8]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x40fc90
mov eax, ebx
sub edx, ebx
mov di, word [edx + eax]
mov word [eax], di
add eax, 2
sub ecx, 1
jne 0x40fc81
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x198]
push esi
push ecx
lea eax, [esp + 0x88]
call fcn.0042eba0
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4102f5
xor edi, edi
cmp word [ebx], di
je 0x40fdaa
mov esi, ebx
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x114]
lea ecx, [esp + 0x130]
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], 0
mov word [esp + 0x134], dx
call fcn.0040bb80
mov byte [esp + 0x41b0], 4
cmp word [esi], 0x2f
jne 0x40fd79
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 0x40fd32
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x12c]
call fcn.0040baa0
cmp dword [esp + 0x140], 8
mov eax, dword [esp + 0x12c]
jae 0x40fd68
lea eax, [esp + 0x12c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x5c
mov word [esi], cx
mov byte [esp + 0x41b0], 3
cmp dword [esp + 0x140], 8
jb 0x40fd9b
mov edx, dword [esp + 0x12c]
push edx
call fcn.00479461
add esp, 4
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x40fce4
mov eax, ebx
mov esi, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fdb4
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0xd8]
call fcn.0040baa0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
mov eax, dword [esp + 0xd8]
je 0x40fe75
cmp dword [esp + 0xec], esi
jae 0x40fdf7
lea eax, [esp + 0xd8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x108], esi
jb 0x40fe19
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
mov edi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], dx
cmp dword [esp + 0xec], esi
jb 0x40fe5b
mov eax, dword [esp + 0xd8]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe8], 0
mov word [esp + 0xd8], cx
jmp 0x41024e
cmp dword [esp + 0xec], esi
jae 0x40fe85
lea eax, [esp + 0xd8]
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 0x4100e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4100e0
push esi
push 0
lea eax, [esp + 0xdc]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x40], 1
call fcn.0040bb80
push 1
lea ebx, [esp + 0xd8]
call fcn.0040bd10
push 1
mov esi, eax
call fcn.0040bd10
mov ecx, dword [esp + 0xe8]
sub ecx, esi
lea edx, [eax + 1]
mov eax, ebx
dec ecx
push eax
lea esi, [esp + 0x12c]
call fcn.0040b1c0
lea ecx, [esp + 0x10c]
push ecx
mov ebx, str.tmp_
lea esi, [esp + 0xbc]
mov byte [esp + 0x41b4], 5
call fcn.0040d170
add esp, 4
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0xdc]
mov byte [esp + 0x41b8], 6
call fcn.0040bb80
mov ebx, 8
mov byte [esp + 0x41b0], 5
cmp dword [esp + 0xd0], ebx
jb 0x40ff6f
mov edx, dword [esp + 0xbc]
push edx
call fcn.00479461
add esp, 4
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], ebx
jae 0x40ff86
lea eax, [esp + 0xd8]
push edi
push eax
call fcn.0047a38b
add esp, 8
test eax, eax
je 0x40ffb3
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], ebx
jae 0x40ffab
lea eax, [esp + 0xd8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [esp + 0x12c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xdc]
call fcn.0040b9e0
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], ebx
jae 0x40ffe2
lea eax, [esp + 0xd8]
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 0x4100bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x4100bf
cmp dword [esp + 0x140], ebx
jb 0x41002f
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], edi
mov word [esp + 0x12c], dx
cmp dword [esp + 0x108], ebx
jb 0x410065
mov eax, dword [esp + 0xf4]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], cx
cmp dword [esp + 0xec], ebx
jb 0x41009e
mov edx, dword [esp + 0xd8]
push edx
call fcn.00479461
add esp, 4
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], edi
mov word [esp + 0xd8], ax
jmp 0x410255
mov byte [esp + 0x41b0], 3
cmp dword [esp + 0x140], ebx
jb 0x4100e0
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00479461
add esp, 4
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
add eax, edx
push ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.0042c540
add esp, 4
test eax, eax
jne 0x4101db
cmp dword [esp + 0x18], ebx
jne 0x4101db
cmp esi, 0xffffffff
je 0x410158
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x410158
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410158
lea esi, [esp + 0xf0]
call fcn.00469b30
lea esi, [esp + 0xd4]
mov byte [esp + 0x41b0], 1
call fcn.00469b30
mov ebx, dword [esp + 0x10]
jmp 0x410255
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x1d], 0
mov esi, 8
je 0x410189
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], esi
jae 0x41017e
lea eax, [esp + 0xd8]
mov edx, dword [ecx + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x38], 0
je 0x4101c8
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x108], esi
jae 0x4101a7
lea ecx, [esp + 0xf4]
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], esi
jae 0x4101be
lea eax, [esp + 0xd8]
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x188], eax
jmp 0x41012f
mov ebx, 8
cmp dword [esp + 0x108], ebx
jb 0x4101f9
mov edx, dword [esp + 0xf4]
push edx
call fcn.00479461
add esp, 4
xor esi, esi
xor eax, eax
mov edi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], esi
mov word [esp + 0xf4], ax
cmp dword [esp + 0xec], ebx
jb 0x410239
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00479461
add esp, 4
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0xe8], esi
mov word [esp + 0xd8], dx
mov dword [esp + 0xec], edi
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x20
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x80]
jb 0x40fb96
jmp 0x410371
mov dword [esp + 0x10], 0
mov edi, 8
mov dword [esp + 0x24], 2
cmp dword [esp + 0x108], edi
jb 0x4102a3
mov eax, dword [esp + 0xf4]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov esi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], cx
cmp dword [esp + 0xec], edi
jb 0x4102e5
mov edx, dword [esp + 0xd8]
push edx
call fcn.00479461
add esp, 4
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [esp + 0xd8], ax
jmp 0x41035f
mov edi, 8
cmp dword [esp + 0x108], edi
jb 0x410313
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
mov esi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], dx
cmp dword [esp + 0xec], edi
jb 0x410355
mov eax, dword [esp + 0xd8]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov word [esp + 0xd8], cx
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x80]
push 0
dec eax
mov dword [ecx + 0x188], edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push 0xbd1
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [esp + 0x34]
lea edi, [esp + 0x30]
lea eax, [esp + 0x6c]
call fcn.0042c880
push ebx
call fcn.0047a847
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4103e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4103dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4103e5
mov dword [esp + 0x50], 0xffffffff
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0xbd2
call edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10c]
push eax
mov ebx, str.tmp_
lea esi, [esp + 0x148]
call fcn.0040d170
mov eax, dword [esp + 0x14c]
mov edi, 8
add esp, 4
cmp dword [esp + 0x15c], edi
jae 0x410438
lea eax, [esp + 0x148]
xor ebx, ebx
push ebx
push eax
call fcn.0047a38b
add esp, 8
test eax, eax
jne 0x410469
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], edi
jae 0x41045f
lea eax, [esp + 0x148]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [esp + 0x15c], edi
jb 0x410482
mov ecx, dword [esp + 0x148]
push ecx
call fcn.00479461
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x15c], esi
mov dword [esp + 0x158], ebx
mov word [esp + 0x148], dx
cmp dword [esp + 0x124], edi
jb 0x4104b8
mov eax, dword [esp + 0x110]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], cx
cmp dword [esp + 0x178], edi
jb 0x4104e9
mov edx, dword [esp + 0x164]
push edx
call fcn.00479461
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x41a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4190]
xor ecx, esp
call fcn.0047946c
mov esp, ebp
pop ebp
ret 4