Function at 0x401080
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, 1
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
cmp ax, word [0x4a1f54]
jg 0x401303
movsd xmm5, qword [0x4cec38]
mov esi, 0x4c2da4
movss xmm7, dword [0x4702d0]
movaps xmm4, xmm5
mulsd xmm4, qword [0x4702b0]
movaps xmm0, xmm5
mov eax, 0x4c73f4
mov dword [ebp - 0x18], esi
mulsd xmm0, qword [0x4702b8]
mov dword [ebp - 0x14], eax
movsd xmm2, qword [0x4702c0]
movsd qword [ebp - 0x24], xmm4
movsd qword [ebp - 0x2c], xmm0
nop dword [eax]
movzx eax, word [eax]
mov edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp word [ebp - 0x1c], ax
jg 0x4012e3
mov esi, dword [esi]
add esi, 0x46
nop dword [eax]
cmp word [esi + 4], 8
jne 0x4012cd
inc ecx
movsd xmm6, qword [0x4a1f00]
movsx eax, cx
mov edi, eax
mov dword [ebp - 4], ecx
shl edi, 4
sub edi, eax
mov eax, dword [ebp - 0x10]
mov word [edi*4 + 0x4d1ee0], ax
mov word [edi*4 + 0x4d1ee2], dx
movsx ecx, word [esi]
lea eax, [ecx*8]
sub eax, ecx
movzx eax, word [eax*8 + 0x4a2042]
mov word [edi*4 + 0x4d1ee4], ax
dec ax
mov cx, word [esi - 2]
add cx, ax
mov word [edi*4 + 0x4d1ee6], cx
movzx eax, word [esi]
mov word [edi*4 + 0x4d1ee8], ax
movzx eax, word [esi + 2]
mov word [edi*4 + 0x4d1eea], ax
mov eax, dword [esi - 0x1e]
mov dword [edi*4 + 0x4d1ef8], eax
mov eax, dword [esi - 0x1a]
mov dword [edi*4 + 0x4d1efc], eax
mov eax, dword [esi - 0x16]
mov dword [edi*4 + 0x4d1f00], eax
mov eax, dword [esi - 0x12]
mov dword [edi*4 + 0x4d1f04], eax
mov eax, dword [esi - 6]
mov dword [edi*4 + 0x4d1f14], eax
mov eax, dword [esi + 6]
mov dword [edi*4 + 0x4d1ef4], eax
movss xmm3, dword [esi - 0xa]
movaps xmm0, xmm3
xorps xmm0, xmm7
cvtss2sd xmm0, xmm0
andps xmm0, xmm2
comisd xmm6, xmm0
jbe 0x4011e1
movaps xmm1, xmm4
jmp 0x40123a
movss xmm1, dword [esi - 0xe]
cvtps2pd xmm0, xmm1
andps xmm0, xmm2
comisd xmm6, xmm0
jbe 0x4011f7
xorps xmm1, xmm1
jmp 0x40123a
movaps xmm0, xmm1
xorps xmm0, xmm7
divss xmm0, xmm3
cvtss2sd xmm0, xmm0
call fcn.0043f960
movsd xmm5, qword [0x4cec38]
movaps xmm1, xmm0
movsd xmm2, qword [0x4702c0]
xorps xmm0, xmm0
comiss xmm0, dword [esi - 0xe]
mov edx, dword [ebp - 0xc]
movsd xmm4, qword [ebp - 0x24]
movss xmm7, dword [0x4702d0]
jbe 0x40123a
addsd xmm1, xmm5
movsd xmm3, qword [0x4702a8]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
andps xmm1, xmm2
comisd xmm3, xmm1
movss dword [edi*4 + 0x4d1f10], xmm0
ja 0x4012bd
movaps xmm0, xmm1
subsd xmm0, xmm5
andps xmm0, xmm2
comisd xmm3, xmm0
ja 0x4012bd
movaps xmm0, xmm1
subsd xmm0, xmm4
andps xmm0, xmm2
comisd xmm3, xmm0
ja 0x4012a3
subsd xmm1, qword [ebp - 0x2c]
andps xmm1, xmm2
comisd xmm3, xmm1
ja 0x4012a3
mov eax, dword [ebp - 4]
cwde
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, 2
mov word [ecx*4 + 0x4d1f18], ax
jmp 0x4012c7
mov eax, dword [ebp - 4]
cwde
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, 1
mov word [ecx*4 + 0x4d1f18], ax
jmp 0x4012c7
xor eax, eax
mov word [edi*4 + 0x4d1f18], ax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add esi, 0x28
mov dword [ebp - 0xc], edx
cmp dx, ax
jle 0x401110
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc edi
add eax, 0x10
mov dword [ebp - 0x10], edi
add esi, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
cmp di, word [0x4a1f54]
jle 0x4010f0
mov word [0x4a1f56], cx
test cx, cx
jle 0x401405
push 1
push 1
push 0x48b140
call fcn.0040bab0
push 0x48b140
push 0x48a940
push 0x489540
push 0x48ad40
push 0x48bf2c
push 0x4d1c0f
call fcn.0040b6e0
mov ecx, 0x48a940
add esp, 0x24
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401350
sub ecx, edx
push 1
push ecx
push 0x48a940
call fcn.0040bab0
push 0x48a940
call fcn.004448d1
mov edi, 0x48a940
add esp, 0x10
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x401380
mov ax, word [0x4702a0]
push 0x4702a2
push 0x4702a2
push 0x48b140
push 0x4702a4
push 0x48b140
mov word [edi], ax
call fcn.0040b9b0
push 0x32
call fcn.00401000
mov esi, 1
add esp, 0x18
mov eax, esi
cmp ax, word [0x4a1f56]
jg 0x4013e8
nop dword [eax + eax]
push 0x4d1ee0
push esi
call fcn.00401410
inc esi
add esp, 8
cmp si, word [0x4a1f56]
jle 0x4013d0
mov esi, 0x32
mov edi, 0x4da7c8
push dword [edi]
call fcn.0043f41b
dec esi
lea edi, [edi - 4]
add esp, 4
test si, si
jg 0x4013f2
pop edi
pop esi
mov esp, ebp
pop ebp
ret