Function at 0x40bee0
Capabilities:
Create directory
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x60d111
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb8]
lea edi, [esp + 0x14]
call fcn.0047ac70
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x40bf65
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40c03b
cmp ecx, eax
jg 0x40c03b
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x40bf65
push 0x5c
call fcn.0040af90
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.LevelPoint_
call fcn.0040aab0
add esp, 8
mov byte [esp + 0xb0], 1
mov edx, dword [esp + 0x18]
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.0040a210
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xbc]
push eax
push str.level__u.dat
lea edi, [esp + 0x24]
mov byte [esp + 0xb8], 2
call fcn.0040e190
push 0x7c
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.005da970
mov esi, dword [esp + 0x30]
add esp, 0x14
push 0x7c
lea edx, [esp + 0x28]
push edx
push 0
push esi
call fcn.005071d0
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
add esp, 0x10
test eax, eax
je 0x40c066
mov edx, dword [esp + 0x24]
test edx, edx
jbe 0x40c066
lea eax, [esp + 0x30]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c004
sub eax, edi
sar eax, 1
je 0x40c066
cmp edx, dword [0x678ed0]
mov dword [0x678ed4], 1
je 0x40c045
push 1
push 0
push ebp
mov dword [0x678ed0], edx
call ebx
call fcn.00507670
jmp 0x40c092
push 0x80070057
call fcn.00403650
cmp dword [0x670a00], 0
je 0x40c05f
push 1
push 0
push ebp
call ebx
mov dword [0x670a00], 0
call fcn.00507670
jmp 0x40c092
cmp dword [0x680668], 0
mov dword [0x678ed4], 0
mov dword [0x670a00], 1
jne 0x40c0d2
mov dword [0x680668], 1
call fcn.0040bd80
cmp dword [0x678ed4], 0
je 0x40c0d2
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x566
push ebp
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 1
push 0x565
push ebp
call edi
push eax
call esi
push 0
push 0
push 0x565
push ebp
call edi
push eax
call ebx
jmp 0x40c0f8
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x566
push ebp
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x565
push ebp
call esi
push eax
call edi
mov byte [esp + 0xb0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c120
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005d28b3
add esp, 0xa0
ret