Function at 0x40fec0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45125d
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x47a42c]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
xor edi, edi
push 0x20a
push edi
push eax
mov dword [ebp - 0x238], edi
call fcn.0042b800
add esp, 0xc
lea ecx, [ebp - 0x2e8]
push 1
push 3
call fcn.0040e290
mov dword [ebp - 4], edi
test esi, esi
je 0x4101a5
push edi
push esi
call fcn.0043b2eb
add esp, 8
test eax, eax
je 0x41017a
push 0x105
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0043afb8
add esp, 0xc
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0x5c
push edi
push 0x459794
push eax
jne 0x40ffc1
call fcn.0043b260
add esp, 0xc
test eax, eax
je 0x40ff90
push eax
lea eax, [ebp - 0x2d8]
push 0x45cae0
push eax
call fcn.0040dd80
add esp, 8
push eax
call fcn.0040dd80
add esp, 8
push 0
push 0x459794
push 0
call fcn.0043b260
add esp, 0xc
test eax, eax
je 0x40ffeb
push 0x459794
push eax
lea eax, [ebp - 0x2d8]
push 0x459794
push eax
call fcn.0040dd80
add esp, 8
jmp 0x40ffd9
call fcn.0043b260
add esp, 0xc
test eax, eax
je 0x40ffeb
push 0x459794
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0040dd80
add esp, 8
push eax
call fcn.0040dd80
add esp, 8
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00410990
cmp dword [eax + 0x14], 8
jb 0x410005
mov eax, dword [eax]
push 0
push eax
call fcn.0043b2eb
add esp, 8
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.0040c360
test esi, esi
jne 0x4101a5
push esi
push 0x459794
push esi
call fcn.0043b260
add esp, 0xc
test eax, eax
je 0x41017a
nop dword [eax]
push 0x459794
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0040dd80
add esp, 8
push eax
call fcn.0040dd80
add esp, 8
mov ecx, dword [ebp - 0x294]
xor eax, eax
or edi, 2
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 0x238], edi
test cl, 2
jne 0x4100bb
mov eax, dword [ebp - 0x2b0]
mov edx, dword [eax]
test edx, edx
je 0x4100bb
cmp edx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x2c0]
cmovb edx, dword [ebp - 0x298]
mov ecx, dword [eax]
sub edx, ecx
sar edx, 1
push edx
jmp 0x4100e5
test cl, 4
jne 0x4100f1
mov eax, dword [ebp - 0x2b4]
mov edx, dword [eax]
test edx, edx
je 0x4100f1
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x2a4]
mov eax, dword [eax]
add eax, eax
sub eax, ecx
add eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x234]
call fcn.0040cfe0
and edi, 0xfffffffd
mov dword [ebp - 4], 0
or edi, 1
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.0043b2c1
mov edx, dword [ebp - 0x220]
add esp, 4
cmp eax, 2
sete bl
cmp edx, 8
jb 0x41015d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410153
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4101a9
push edx
push ecx
call fcn.00428a68
add esp, 8
test bl, bl
jne 0x4101a5
push 0
push 0x459794
push 0
call fcn.0043b260
add esp, 0xc
test eax, eax
jne 0x410040
mov bl, 1
lea ecx, [ebp - 0x2e8]
call fcn.0040f030
mov al, bl
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.00428a27
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41017c
call fcn.0043af68
int3