Function at 0x40676a
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x452800]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x24
mov eax, 0x43d382
call fcn.0042a3fb
mov eax, dword [ebp + 0x25c]
xor esi, esi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00402152
push 0x24c
lea eax, [ebp + 4]
push esi
mov byte [ebp - 4], 1
push eax
mov dword [ebp], esi
call fcn.00429440
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0041728a
push 0x44571c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402152
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
mov eax, dword [edx - 0xc]
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x4068b9
cmp ecx, eax
jg 0x4068b9
movzx ecx, word [edx + ecx*2]
push 0x5c
pop edi
cmp di, cx
jne 0x406832
push esi
dec eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00406e44
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00402152
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00402410
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004023f6
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp]
push eax
push edx
call ebx
cmp dword [ebp], 0x10
push eax
jne 0x406875
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023f6
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00417467
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004023f6
mov al, 1
jmp 0x40699e
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x2c]
call fcn.00417331
mov eax, dword [ebp - 0x18]
mov edx, dword [eax - 0xc]
cmp esi, edx
jge 0x4068fc
test esi, esi
jl 0x4068b9
cmp esi, edx
jg 0x4068b9
movzx eax, word [eax + esi*2]
movzx ecx, ax
cmp cx, 0x5c
je 0x4068c3
cmp esi, edx
jg 0x4068b9
movzx eax, ax
push eax
lea ecx, [ebp - 0x14]
call fcn.00406fb8
jmp 0x4068df
push 0x80070057
call fcn.0040249f
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
call fcn.00417560
push 0x4466c0
lea ecx, [ebp - 0x14]
call fcn.00406e81
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
dec eax
cmp esi, eax
jne 0x4068f9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
call fcn.00417560
inc esi
jmp 0x406888
xor esi, esi
inc esi
cmp esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
jge 0x406936
push esi
call fcn.00406f9c
push eax
lea ecx, [ebp - 0x14]
call fcn.00402410
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406933
push 0x80
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc esi
jmp 0x4068ff
push 0xffffffffffffffff
push 0
call fcn.00417331
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call ebx
cmp dword [ebp], 0x10
push eax
jne 0x406979
call edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023f6
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00417467
mov bl, 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004023f6
mov al, bl
jmp 0x40699e
call edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023f6
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00417467
xor bl, bl
jmp 0x40696a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004285ca
add ebp, 0x254
leave
ret 4