Function at 0x413860
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ea20
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4138c0
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00410900
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
lea ecx, [edi - 1]
cmp edi, ecx
jbe 0x413b68
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp word [eax + ecx*2], 0x5c
je 0x413912
push 1
push 0x58bdf0
lea ecx, [ebp - 0x2c]
call fcn.00411920
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14c], esi
test edi, edi
je 0x4139ac
push 0x100
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00521a60
add esp, 0xc
lea ecx, [ebp - 0x148]
push 0x58bdf2
push 0x58bdf0
call fcn.0041c280
test al, al
mov eax, esi
jne 0x413a7f
lea ecx, [esi + edi*2]
mov dword [ebp - 0x150], ecx
cmp esi, ecx
jae 0x4139ac
movzx esi, word [eax]
mov edx, 1
mov ecx, 0x58bdf0
nop dword [eax]
cmp word [ecx], si
je 0x413a72
add ecx, 2
sub edx, 1
jne 0x413990
add eax, 2
cmp eax, dword [ebp - 0x150]
jb 0x413980
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x413ac3
nop dword [eax + eax]
xor ecx, ecx
mov dword [ebp - 0x158], 0
lea esi, [eax + 1]
mov word [ebp - 0x168], cx
cmp edi, esi
mov dword [ebp - 0x154], 7
mov ecx, esi
lea eax, [ebp - 0x2c]
cmovb ecx, edi
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x168]
push eax
call fcn.00410900
lea ecx, [ebp - 0x44]
call fcn.00407320
movups xmm1, xmmword [ebp - 0x168]
cmp dword [ebp - 0x154], 8
lea ecx, [ebp - 0x44]
movq xmm0, qword [ebp - 0x158]
movd eax, xmm1
push 0
movups xmmword [ebp - 0x44], xmm1
cmovae ecx, eax
movq qword [ebp - 0x34], xmm0
push ecx
call fcn.0052da84
add esp, 8
test eax, eax
je 0x413a57
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0052db5c
add esp, 4
test eax, eax
jne 0x413abf
push esi
push 0x58bdf0
lea ecx, [ebp - 0x2c]
call fcn.0041a3d0
cmp eax, 0xffffffff
je 0x413ac3
mov edi, dword [ebp - 0x1c]
jmp 0x4139c0
sub eax, dword [ebp - 0x14c]
sar eax, 1
jmp 0x4139af
lea edx, [esi + edi*2]
cmp esi, edx
jae 0x4139ac
mov dword [ebp - 0x14c], 0x100
movzx ecx, word [eax]
cmp cx, word [ebp - 0x14c]
jae 0x413aaa
cmp byte [ebp + ecx - 0x148], 0
jne 0x413ab6
add eax, 2
cmp eax, edx
jb 0x413a94
jmp 0x4139ac
sub eax, esi
sar eax, 1
jmp 0x4139af
xor esi, esi
jmp 0x413ac8
mov esi, 1
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x413afe
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413af4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b6d
push edx
push ecx
call fcn.00497d51
add esp, 8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x413b48
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413b3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b72
push edx
push ecx
call fcn.00497d51
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00404db0
call fcn.00524a29
call fcn.00524a29
int3