Function at 0x402630
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a21a
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x4213d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0x41e25c
push eax
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0xf0]
push eax
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x348], edx
call fcn.00407c30
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xf0]
mov edi, 8
cmp dword [ebp - 0xdc], edi
jae 0x4026ae
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x374], esi
cmp esi, 0xffffffff
jne 0x4026e7
cmp dword [ebp - 0xdc], edi
jb 0x4026e0
mov edx, dword [ebp - 0xf0]
push edx
call fcn.00409f88
add esp, 4
xor al, al
jmp 0x402dee
lea eax, [ebp - 0x340]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402dcd
xor ecx, ecx
lea eax, [ebp - 0x314]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402720
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x314]
lea esi, [ebp - 0x48]
call fcn.00405150
mov byte [ebp - 4], 1
test byte [ebp - 0x340], 0x10
je 0x402a87
mov esi, dword [ebp - 0x38]
mov edx, esi
cmp esi, 2
jb 0x40275e
mov edx, 2
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
cmp edi, 8
jae 0x40276c
lea ecx, [ebp - 0x48]
mov eax, 0x41e264
test edx, edx
je 0x402790
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x402788
add ecx, 2
add eax, 2
dec edx
jne 0x402775
jmp 0x402790
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x4027a2
cmp esi, 2
jae 0x40279a
or eax, 0xffffffff
jmp 0x4027a2
xor eax, eax
cmp esi, 2
setne al
test eax, eax
sete al
test al, al
je 0x4027c1
mov byte [ebp - 4], 0
cmp edi, 8
jb 0x402db1
mov eax, dword [ebp - 0x48]
push eax
jmp 0x402da9
mov ecx, dword [ebp - 0x344]
push 0x41e26c
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00407d20
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], edi
jb 0x402807
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00409f88
add esp, 4
mov eax, 7
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x35c], eax
xor ecx, ecx
push esi
lea eax, [ebp - 0xb8]
mov word [ebp - 0x2c], cx
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x360], esi
mov word [ebp - 0x370], dx
call fcn.00405050
lea ecx, [ebp - 0x94]
push 1
mov edx, ecx
push edx
mov dword [ebp - 0x38c], 0xc
mov dword [ebp - 0x384], esi
mov dword [ebp - 0x388], ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, dword [ebp - 0x388]
push esi
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x35c], edi
jae 0x402891
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x35c], edi
jb 0x4028b6
mov edx, dword [ebp - 0x370]
push edx
call fcn.00409f88
add esp, 4
mov eax, dword [ebp - 0x348]
push 0x41e26c
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.00407d20
mov ebx, 7
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], edi
jb 0x402900
mov edx, dword [ebp - 0x80]
push edx
call fcn.00409f88
add esp, 4
xor esi, esi
xor eax, eax
xor ecx, ecx
push esi
lea edx, [ebp - 0xd4]
mov word [ebp - 0x80], ax
mov word [ebp - 0x370], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x360], esi
call fcn.00405050
lea eax, [ebp - 0x94]
push 1
mov ecx, eax
push ecx
mov dword [ebp - 0x380], 0xc
mov dword [ebp - 0x378], esi
mov dword [ebp - 0x37c], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov edx, dword [ebp - 0x37c]
push esi
push esi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x35c], edi
jae 0x402985
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x380]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x35c], edi
jb 0x4029aa
mov edx, dword [ebp - 0x370]
push edx
call fcn.00409f88
add esp, 4
mov eax, dword [ebp - 0x34c]
push 0x41e26c
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.00407d20
mov esi, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], esi
jb 0x4029ed
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00409f88
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
xor eax, eax
lea edx, [ebp - 0xd4]
mov word [ebp - 0x2c], ax
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x64]
mov edi, 7
xor ebx, ebx
push ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00402630
add esp, 0x10
cmp dword [ebp - 0x50], esi
jb 0x402a2f
mov edx, dword [ebp - 0x64]
push edx
call fcn.00409f88
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0xc0], esi
jb 0x402a52
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00409f88
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
cmp dword [ebp - 0xa4], esi
jb 0x402d9d
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00409f88
add esp, 4
jmp 0x402d9d
mov ecx, dword [ebp - 0x348]
push 0x41e26c
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
call fcn.00407d20
mov esi, eax
mov eax, dword [ebp - 0x344]
push 0x41e26c
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0xc
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.00407d20
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x402aee
mov esi, dword [esi]
cmp dword [eax + 0x14], ebx
jb 0x402af5
mov eax, dword [eax]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x6c], ebx
jb 0x402b10
mov edx, dword [ebp - 0x80]
push edx
call fcn.00409f88
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x18], ebx
jb 0x402b34
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00409f88
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], ebx
jb 0x402b51
mov eax, dword [ebp - 0x64]
push eax
call fcn.00409f88
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0xa4], ebx
jb 0x402b78
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00409f88
add esp, 4
mov eax, dword [ebp - 0x344]
push 0x41e26c
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 0xe
call fcn.00407d20
mov esi, eax
mov edx, dword [ebp - 0x34c]
push 0x41e26c
push edx
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00407c30
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.00407d20
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x402bdf
mov esi, dword [esi]
cmp dword [eax + 0x14], edi
jb 0x402be6
mov eax, dword [eax]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x6c], edi
jb 0x402c01
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00409f88
add esp, 4
xor ebx, ebx
xor edx, edx
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], edi
jb 0x402c25
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00409f88
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], edi
jb 0x402c42
mov edx, dword [ebp - 0x64]
push edx
call fcn.00409f88
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0xa4], edi
jb 0x402c69
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00409f88
add esp, 4
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x9c]
call fcn.00401aa0
mov byte [ebp - 4], 0x11
mov esi, dword [ebp - 0x8c]
mov edx, esi
cmp esi, 3
jb 0x402c8d
mov edx, 3
mov ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x402ca1
lea ecx, [ebp - 0x9c]
mov eax, 0x41e270
cmp edx, ebx
jbe 0x402cc6
lea ebx, [ebx]
mov di, word [ecx]
cmp di, word [eax]
jne 0x402cd0
add ecx, 2
add eax, 2
dec edx
jne 0x402cb0
mov edi, 8
cmp esi, 3
jae 0x402ce1
or eax, 0xffffffff
jmp 0x402ce9
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x402cc1
mov edi, 8
jmp 0x402ce9
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
sete al
cmp al, bl
jne 0x402d62
mov edx, esi
cmp esi, 3
jb 0x402cfe
mov edx, 3
mov ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x402d12
lea ecx, [ebp - 0x9c]
mov eax, 0x41e278
cmp edx, ebx
jbe 0x402d36
jmp 0x402d20
mov di, word [ecx]
cmp di, word [eax]
jne 0x402d40
add ecx, 2
add eax, 2
dec edx
jne 0x402d20
mov edi, 8
cmp esi, 3
jae 0x402d51
or eax, 0xffffffff
jmp 0x402d59
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x402d31
mov edi, 8
jmp 0x402d59
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
sete al
cmp al, bl
je 0x402d7f
push ebx
lea edx, [ebp - 0x48]
push edx
or eax, 0xffffffff
mov ecx, 0x4223fc
call fcn.00405050
mov eax, dword [ebp - 0x324]
mov dword [0x423670], eax
cmp dword [ebp - 0x88], edi
jb 0x402d96
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00409f88
add esp, 4
mov esi, 8
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x402db1
mov edx, dword [ebp - 0x48]
push edx
call fcn.00409f88
add esp, 4
mov esi, dword [ebp - 0x374]
lea eax, [ebp - 0x340]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4026fd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0xdc], 8
jb 0x402dec
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.00409f88
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004097da
mov esp, ebp
pop ebp
ret