Function at 0x40b3f0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4930
call fcn.00410970
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x4890], eax
xor eax, eax
push 0x61a
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
xor edi, edi
call fcn.00410510
mov ebx, esi
add esp, 0xc
lea ecx, [ebx + 2]
jmp 0x40b440
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40b440
push esi
lea eax, [ebp - 0x620]
sub ebx, ecx
push 0x30e
push eax
sar ebx, 1
call fcn.004106db
add esp, 0xc
cmp word [esi + ebx*2 - 2], 0x5c
je 0x40b49f
push 0x41a518
lea eax, [ebp - 0x620]
push 0x30e
push eax
call fcn.0041066f
lea ebx, [ebp - 0x620]
add esp, 0xc
lea ecx, [ebx + 2]
mov edi, edi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40b490
sub ebx, ecx
sar ebx, 1
call fcn.00407b20
lea eax, [ebp - 0x48d0]
push eax
mov dword [ebp - 0x48ac], 0x407a30
mov dword [ebp - 0x48a8], 0x407a50
mov dword [ebp - 0x48d8], 0x407a30
mov dword [ebp - 0x48d4], 0x407a50
call fcn.004087a0
lea eax, [ebp - 0x488c]
push 0
push eax
call fcn.0040b930
push dword [ebp - 0x4890]
lea eax, [ebp - 0x48c8]
push eax
call fcn.004089c0
add esp, 0x14
test eax, eax
je 0x40b506
mov edi, 0xb
jmp 0x40b56e
lea eax, [ebp - 0x48bc]
push eax
lea eax, [ebp - 0x48c8]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x48bc], xmm0
call fcn.0040b290
add esp, 8
test eax, eax
jne 0x40b530
lea edi, [eax + 0xb]
jmp 0x40b56e
push 0
lea eax, [ebp - 0x48bc]
push eax
lea eax, [ebp - 0x48c8]
push eax
call fcn.004088b0
add esp, 0xc
test eax, eax
je 0x40b553
mov edi, 0xb
jmp 0x40b56e
lea eax, [ebp - 0x48d0]
mov dword [ebp - 0x487c], eax
lea eax, [ebp - 0x488c]
push eax
call fcn.0040b960
add esp, 4
lea eax, [ebp - 0x4930]
push eax
call fcn.00408ec0
add esp, 4
test edi, edi
jne 0x40b850
lea eax, [ebp - 0x48d8]
push eax
lea eax, [ebp - 0x48ac]
push eax
lea eax, [ebp - 0x488c]
push eax
lea eax, [ebp - 0x4930]
push eax
call fcn.00408f30
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40b850
xor ecx, ecx
mov dword [ebp - 0x48c0], 0xffffffff
mov dword [ebp - 0x4894], eax
mov dword [ebp - 0x48c4], eax
mov dword [ebp - 0x48a4], ecx
cmp dword [ebp - 0x4914], ecx
jbe 0x40b83a
xor edx, edx
mov dword [ebp - 0x4890], edx
mov eax, dword [ebp - 0x4920]
add eax, edx
push 0
mov dword [ebp - 0x48b8], eax
push ecx
lea eax, [ebp - 0x4930]
push eax
mov dword [ebp - 0x48b4], 0
mov dword [ebp - 0x4898], 0
call fcn.00408e70
add esp, 0xc
cmp eax, 0x104
jae 0x40b835
mov edi, dword [ebp - 0x48a4]
lea esi, [ebp - 0x620]
lea eax, [ebp - 0x4930]
lea esi, [esi + ebx*2]
push esi
push edi
push eax
call fcn.00408e70
lea eax, [ebp - 0x48d8]
push eax
lea eax, [ebp - 0x48ac]
push eax
lea eax, [ebp - 0x4898]
push eax
lea eax, [ebp - 0x48b4]
push eax
lea eax, [ebp - 0x48c4]
push eax
lea eax, [ebp - 0x4894]
push eax
lea eax, [ebp - 0x48c0]
push eax
push edi
lea eax, [ebp - 0x488c]
push eax
lea eax, [ebp - 0x4930]
push eax
call fcn.00408a40
mov edi, eax
add esp, 0x34
mov dword [ebp - 0x489c], edi
test edi, edi
jne 0x40b83a
cmp word [esi], di
je 0x40b6e6
lea eax, [ebp - 0x620]
lea eax, [eax + ebx*2]
cmp word [esi], 0x2f
jne 0x40b6db
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
lea eax, [ebp - 0x620]
lea eax, [eax + ebx*2]
inc edi
cmp word [eax + edi*2], 0
lea esi, [eax + edi*2]
jne 0x40b6a7
mov esi, dword [ebp - 0x48b8]
cmp byte [esi + 0x19], 0
je 0x40b73e
push 0
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b70b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x489c]
mov ecx, dword [ebp - 0x48a4]
mov edx, dword [ebp - 0x4890]
inc ecx
add edx, 0x20
mov dword [ebp - 0x48a4], ecx
mov dword [ebp - 0x4890], edx
cmp ecx, dword [ebp - 0x4914]
jb 0x40b5e5
jmp 0x40b83a
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40b82e
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x48a0]
push eax
call fcn.00408a00
add esp, 8
test eax, eax
jne 0x40b835
mov eax, dword [ebp - 0x4898]
mov dword [ebp - 0x48b0], eax
lea eax, [ebp - 0x48b0]
push eax
mov eax, dword [ebp - 0x48b4]
add eax, dword [ebp - 0x4894]
push eax
lea eax, [ebp - 0x48a0]
push eax
call fcn.00408940
add esp, 0xc
test eax, eax
jne 0x40b7ba
mov eax, dword [ebp - 0x48b0]
cmp eax, dword [ebp - 0x4898]
je 0x40b7c1
mov edi, 0xb
jmp 0x40b7c7
mov edi, dword [ebp - 0x489c]
cmp byte [esi + 0x1c], 0
je 0x40b7f5
mov eax, dword [esi]
mov dword [ebp - 0x48e0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x48dc], eax
lea eax, [ebp - 0x48e0]
push eax
push 0
push 0
push dword [ebp - 0x48a0]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x48a0]
push eax
call fcn.00408800
add esp, 4
test edi, edi
jne 0x40b83a
test eax, eax
jne 0x40b82a
cmp byte [esi + 0x1d], al
je 0x40b711
push dword [esi + 0x14]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40b711
mov edi, eax
jmp 0x40b83a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 0xb
push dword [ebp - 0x4894]
lea eax, [ebp - 0x48ac]
push eax
call dword [ebp - 0x48a8]
add esp, 8
lea eax, [ebp - 0x48ac]
push eax
lea eax, [ebp - 0x4930]
push eax
call fcn.00408e10
lea eax, [ebp - 0x48c8]
push eax
call fcn.00408800
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret