Function at 0x40ade0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2e4
test eax, eax
push ebx
mov ebx, ecx
je 0x40ae24
cmp byte [eax + 1], 0x3a
jne 0x40ae0f
lea edx, [esp + 0x1e8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ae00
jmp 0x40aeab
push eax
push str.Levels_
push 0x4a2340
lea eax, [esp + 0x1f4]
push eax
jmp 0x40aea3
mov al, byte [0x4c30a8]
test al, al
jne 0x40ae39
xor al, al
pop ebx
add esp, 0x2e4
ret 8
cmp byte [0x4c30a9], 0x3a
jne 0x40ae64
xor eax, eax
jmp 0x40ae50
mov cl, byte [eax + 0x4c30a8]
mov byte [esp + eax + 0x1e8], cl
inc eax
test cl, cl
jne 0x40ae50
jmp 0x40aeab
lea ecx, [esp + 0x58]
push ecx
push str.Levels
mov dword [esp + 0x60], 0xc
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4c30a8
push str.Levels_
push 0x4a2340
lea edx, [esp + 0x1f4]
push edx
call fcn.00463c2f
add esp, 0x10
push esi
push edi
mov edi, str.Levels_blank.lev
lea esi, [esp + 0x1f0]
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40aef1
mov al, byte [esp + 0x2f8]
test al, al
jne 0x40aeff
lea ecx, [esp + 0x1f0]
push 0x4a2698
push ecx
call fcn.00463fc2
add esp, 8
test eax, eax
je 0x40aeff
push eax
call fcn.00463f42
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x2e4
ret 8
lea edx, [esp + 0x1f0]
push 0x4a2694
push edx
call fcn.00463fc2
mov edi, eax
add esp, 8
test edi, edi
jne 0x40af51
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x1f0]
push 0x4a2694
push edx
call fcn.00463fc2
add esp, 8
mov edi, eax
push edi
push 4
lea eax, [esp + 0x8c]
push 1
push eax
mov dword [esp + 0x94], 0x13f31
call fcn.00463e3b
mov al, byte [0x4a2690]
mov edx, dword [0x4a268c]
mov ecx, dword [str.HB_LEVEL]
mov byte [esp + 0x108], al
lea eax, [esp + 0x100]
mov dword [esp + 0x104], edx
add esp, 0x10
mov dword [esp + 0xf0], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afa1
push edi
sub eax, edx
push eax
lea ecx, [esp + 0xf8]
push 1
push ecx
call fcn.00463e3b
push edi
push 2
lea edx, [esp + 0x98]
push 1
push edx
mov dword [esp + 0xa0], 0xb03
call fcn.00463e3b
mov eax, dword [str.PLAYAREA]
mov ecx, dword [0x4a2680]
mov dl, byte [0x4a2684]
mov dword [esp + 0x110], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x114], ecx
add esp, 0x20
mov byte [esp + 0xf8], dl
lea ecx, [eax + 1]
jmp 0x40b010
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b010
sub eax, ecx
push edi
push eax
lea eax, [esp + 0xf8]
push 1
push eax
call fcn.00463e3b
mov ecx, dword [0x4b3118]
mov edx, dword [ecx + 0x44]
mov eax, dword [edx + 0x2c]
push edi
push 4
lea ecx, [esp + 0xa4]
push 1
push ecx
mov dword [esp + 0xac], eax
call fcn.00463e3b
mov edx, dword [0x4b3118]
mov eax, dword [edx + 0x44]
mov ecx, dword [eax + 0x30]
push edi
push 4
lea edx, [esp + 0xa0]
push 1
push edx
mov dword [esp + 0xa8], ecx
call fcn.00463e3b
add esp, 0x30
push str.PlayArea
mov ecx, ebx
call fcn.00402320
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov ebx, dword [ecx + 8]
push edi
push 0xc
push 1
lea edx, [esp + 0xc0]
push edx
mov ecx, ebx
mov dword [esp + 0x98], ebx
call fcn.00417e30
push eax
call fcn.00463e3b
add esp, 0x10
mov ecx, ebx
call fcn.004239c0
mov esi, eax
mov eax, dword [0x4b38fc]
add eax, 0x18
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x3c], ecx
mov dword [esp + 0x50], ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], eax
mov dword [esp + 0x54], edx
mov edx, dword [0x4b3118]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x5c], eax
call fcn.00426070
mov ecx, dword [eax]
push edi
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 4]
push 0x48
mov dword [esi + 0x34], edx
mov eax, dword [eax + 8]
push 1
push esi
mov dword [esi + 0x38], eax
call fcn.00463e3b
mov ecx, dword [str.BRICKS]
mov dx, word [0x4a2678]
mov al, byte [0x4a267a]
add esp, 0x10
mov dword [esp + 0xf0], ecx
mov word [esp + 0xf4], dx
mov byte [esp + 0xf6], al
lea eax, [esp + 0xf0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b144
push edi
sub eax, esi
push eax
lea ecx, [esp + 0xf8]
push 1
push ecx
call fcn.00463e3b
add esp, 0x10
push str.Grid
mov ecx, ebx
call fcn.00402320
push edi
mov esi, eax
mov dl, byte [esi + 8]
push 1
lea eax, [esp + 0x27]
push 1
push eax
mov dword [esp + 0x8c], esi
mov byte [esp + 0x2f], dl
call fcn.00463e3b
mov esi, dword [esi + 4]
mov eax, dword [esi]
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x5c], eax
je 0x40ba52
push ebp
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + 8]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x3f]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0041f220
push edi
push 1
lea edx, [esp + 0x34]
push 1
push edx
call fcn.00463e3b
push edi
push 1
lea eax, [esp + 0x53]
push 1
push eax
call fcn.00463e3b
push edi
push 1
lea ecx, [esp + 0x60]
push 1
push ecx
call fcn.00463e3b
mov ecx, dword [esp + 0xbc]
add esp, 0x30
lea edx, [esp + 0xdc]
push edx
call fcn.00417e30
mov ebx, eax
lea eax, [esp + 0xc4]
push eax
mov ecx, esi
call fcn.0040a990
fld dword [eax + 8]
fsub dword [ebx + 8]
push edi
fld dword [eax + 4]
push 0xc
fsub dword [ebx + 4]
lea ecx, [esp + 0x9c]
fld dword [eax]
push 1
fsub dword [ebx]
push ecx
fstp dword [esp + 0xa4]
fstp dword [esp + 0xa8]
fstp dword [esp + 0xac]
call fcn.00463e3b
add esp, 0x10
xor ebp, ebp
nop
push ebp
mov ecx, esi
call fcn.0041f890
mov ecx, esi
call fcn.0041f6e0
push edi
push 4
lea edx, [esp + 0x58]
push 1
push edx
mov dword [esp + 0x60], eax
call fcn.00463e3b
mov eax, dword [esp + 0x60]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x40b2ae
nop
push ebx
lea eax, [esp + 0xbc]
push eax
mov ecx, esi
call fcn.0041f6f0
push edi
push 0xc
lea ecx, [esp + 0xc0]
push 1
push ecx
call fcn.00463e3b
mov eax, dword [esp + 0x60]
add esp, 0x10
inc ebx
cmp ebx, eax
jl 0x40b280
inc ebp
cmp ebp, 3
jl 0x40b250
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.0041f890
mov ecx, esi
call fcn.0041f180
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b2c8
sub eax, edx
push edi
inc eax
push eax
push 1
mov ecx, esi
call fcn.0041f180
push eax
call fcn.00463e3b
add esp, 0x10
push str.Brick
mov ecx, esi
call fcn.00402320
push edi
mov esi, eax
mov edx, dword [esi + 8]
push 4
lea eax, [esp + 0x2c]
push 1
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], edx
call fcn.00463e3b
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebx
jle 0x40ba37
lea ecx, [eax*4]
push ecx
call fcn.00459630
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
lea eax, [edx*4]
push eax
call fcn.00459630
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4]
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
call fcn.00459630
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
lea ecx, [eax*4]
push ecx
call fcn.00459630
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
add esp, 0x10
cmp ecx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
je 0x40b796
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
sub ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], ecx
sub esi, ebp
jmp 0x40b3b0
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 8]
lea ecx, [ebx + 0x4e8]
call fcn.0044bb30
test al, al
je 0x40b44f
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov dword [eax + ecx], ebx
mov edx, dword [0x4b3900]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0x58], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x60], edx
call fcn.0040a990
fld dword [eax + 8]
fsub dword [esp + 0x5c]
lea ecx, [esp + 0xac]
fld dword [eax + 4]
push ecx
fsub dword [esp + 0x5c]
fld dword [eax]
fsub dword [esp + 0x58]
fstp dword [esp + 0xb0]
fstp dword [esp + 0xb4]
fstp dword [esp + 0xb8]
call fcn.00401390
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fstp dword [eax]
add esp, 4
inc edx
add eax, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x40b4c3
mov dword [esi + ebp], ebx
mov edx, dword [0x4b3900]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0x68], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x70], edx
call fcn.0040a990
fld dword [eax + 8]
fsub dword [esp + 0x6c]
lea ecx, [esp + 0xa0]
fld dword [eax + 4]
push ecx
fsub dword [esp + 0x6c]
fld dword [eax]
fsub dword [esp + 0x68]
fstp dword [esp + 0xa4]
fstp dword [esp + 0xa8]
fstp dword [esp + 0xac]
call fcn.00401390
mov ecx, dword [esp + 0x48]
fstp dword [ebp]
add esp, 4
inc ecx
mov dword [esp + 0x44], ecx
add ebp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
cmp eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
jne 0x40b3b0
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x40b636
lea edx, [eax - 1]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, 4
jl 0x40b5d7
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
mov ebp, eax
add ebp, 0xfffffffc
shr ebp, 2
add edx, 0xc
add ecx, 4
inc ebp
lea ebx, [ebp*4]
mov edi, edi
fld dword [ecx - 4]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x40b54a
mov eax, dword [ecx]
fld dword [ecx - 4]
mov dword [ecx - 4], eax
fstp dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + esi]
mov dword [edx - 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + esi], eax
fld dword [ecx]
fcomp dword [ecx + 4]
fnstsw ax
test ah, 0x41
jne 0x40b574
mov eax, dword [ecx + 4]
fld dword [ecx]
mov dword [ecx], eax
fstp dword [ecx + 4]
mov eax, dword [ecx + esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx - 4]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x10]
mov dword [edx - 4], eax
fld dword [ecx + 4]
fcomp dword [ecx + 8]
fnstsw ax
test ah, 0x41
jne 0x40b59f
mov eax, dword [ecx + 8]
fld dword [ecx + 4]
mov dword [ecx + 4], eax
fstp dword [ecx + 8]
mov eax, dword [edx - 4]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [esp + 0x10]
mov dword [edx], eax
fld dword [ecx + 8]
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 0x41
jne 0x40b5ca
mov eax, dword [ecx + 0xc]
fld dword [ecx + 8]
mov dword [ecx + 8], eax
fstp dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
add ecx, 0x10
add edx, 0x10
dec ebp
jne 0x40b520
cmp ebx, dword [esp + 0x18]
jge 0x40b61e
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
lea ecx, [ecx + ebx*4 + 4]
lea esp, [esp]
fld dword [ecx - 4]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x40b612
mov eax, dword [ecx]
fld dword [ecx - 4]
fstp dword [ecx]
mov dword [ecx - 4], eax
mov eax, dword [edx + ebx*4]
mov ebp, dword [esi + ecx]
mov dword [edx + ebx*4], ebp
mov dword [esi + ecx], eax
mov eax, dword [esp + 0x18]
inc ebx
add ecx, 4
cmp ebx, eax
jl 0x40b5f0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
dec ecx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
jne 0x40b4f1
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x40b796
mov ebp, dword [esp + 0x70]
lea ecx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, 4
jl 0x40b737
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov ebx, eax
add ebx, 0xfffffffc
shr ebx, 2
add edx, 0xc
add ecx, 4
inc ebx
lea esi, [ebx*4]
mov edi, edi
fld dword [ecx - 4]
fcomp dword [ecx]
fnstsw ax
test ah, 5
jp 0x40b6aa
mov eax, dword [ecx]
fld dword [ecx - 4]
mov dword [ecx - 4], eax
fstp dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + ebp]
mov dword [edx - 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + ebp], eax
fld dword [ecx]
fcomp dword [ecx + 4]
fnstsw ax
test ah, 5
jp 0x40b6d4
mov eax, dword [ecx + 4]
fld dword [ecx]
mov dword [ecx], eax
fstp dword [ecx + 4]
mov eax, dword [ecx + ebp]
mov dword [esp + 0x10], eax
mov eax, dword [edx - 4]
mov dword [ecx + ebp], eax
mov eax, dword [esp + 0x10]
mov dword [edx - 4], eax
fld dword [ecx + 4]
fcomp dword [ecx + 8]
fnstsw ax
test ah, 5
jp 0x40b6ff
mov eax, dword [ecx + 8]
fld dword [ecx + 4]
mov dword [ecx + 4], eax
fstp dword [ecx + 8]
mov eax, dword [edx - 4]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [esp + 0x10]
mov dword [edx], eax
fld dword [ecx + 8]
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 5
jp 0x40b72a
mov eax, dword [ecx + 0xc]
fld dword [ecx + 8]
mov dword [ecx + 8], eax
fstp dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
add ecx, 0x10
add edx, 0x10
dec ebx
jne 0x40b680
cmp esi, dword [esp + 0x18]
jge 0x40b77e
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
lea ecx, [ecx + esi*4 + 4]
lea esp, [esp]
fld dword [ecx - 4]
fcomp dword [ecx]
fnstsw ax
test ah, 5
jp 0x40b772
mov eax, dword [ecx]
fld dword [ecx - 4]
fstp dword [ecx]
mov dword [ecx - 4], eax
mov eax, dword [edx + esi*4]
mov ebx, dword [ecx + ebp]
mov dword [edx + esi*4], ebx
mov dword [ecx + ebp], eax
mov eax, dword [esp + 0x18]
inc esi
add ecx, 4
cmp esi, eax
jl 0x40b750
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
dec ecx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
jne 0x40b651
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jle 0x40b7bd
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + esi*4]
mov esi, dword [esp + 0x40]
nop
mov ebx, dword [esi + eax*4]
mov dword [ecx], ebx
add ecx, 4
inc eax
cmp eax, edx
jl 0x40b7b0
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x40ba0c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov esi, dword [edx + eax*4]
lea ecx, [esp + 0x2f]
push ecx
lea edx, [esp + 0x2f]
push edx
lea eax, [esp + 0x36]
push eax
mov ecx, esi
call fcn.00418780
push edi
push 1
lea ecx, [esp + 0x36]
push 1
push ecx
call fcn.00463e3b
push edi
push 1
lea edx, [esp + 0x43]
push 1
push edx
call fcn.00463e3b
push edi
push 1
lea eax, [esp + 0x57]
push 1
push eax
call fcn.00463e3b
lea ebx, [esi + 0x4e8]
add esp, 0x30
mov ecx, ebx
call fcn.0044a950
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b832
push edi
sub eax, edx
push 1
inc eax
push eax
mov ecx, ebx
call fcn.0044a950
push eax
call fcn.00463e3b
add esp, 0x10
push 0
mov ecx, ebx
call fcn.0044aad0
test eax, eax
jne 0x40b863
mov byte [esp + 0x17], al
jmp 0x40b86e
mov ecx, ebx
call fcn.0044aac0
mov byte [esp + 0x17], al
push edi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.00463e3b
mov al, byte [esp + 0x27]
add esp, 0x10
xor ebp, ebp
test al, al
jle 0x40b8c9
lea ebx, [ebx]
push ebp
mov ecx, ebx
call fcn.0044aad0
lea edx, [eax + 1]
jmp 0x40b8a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b8a0
push edi
sub eax, edx
push 1
inc eax
push eax
push ebp
mov ecx, ebx
call fcn.0044aad0
push eax
call fcn.00463e3b
movsx edx, byte [esp + 0x27]
add esp, 0x10
inc ebp
cmp ebp, edx
jl 0x40b890
push 1
lea eax, [esp + 0x3d]
push eax
lea ecx, [esp + 0x3f]
push ecx
lea edx, [esp + 0x39]
push edx
mov ecx, esi
call fcn.004187f0
push edi
push 1
lea eax, [esp + 0x35]
push 1
push eax
call fcn.00463e3b
push edi
push 1
lea ecx, [esp + 0x4f]
push 1
push ecx
call fcn.00463e3b
push edi
push 1
lea edx, [esp + 0x61]
push 1
push edx
call fcn.00463e3b
add esp, 0x30
mov ecx, esi
call fcn.00418980
push edi
push 4
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
push 1
push eax
call fcn.00463e3b
mov cl, byte [esi + 0x604]
push edi
push 1
lea edx, [esp + 0x3a]
push 1
push edx
mov byte [esp + 0x42], cl
call fcn.00463e3b
mov eax, dword [esi + 0x608]
push edi
push 4
lea ecx, [esp + 0xa0]
push 1
push ecx
mov dword [esp + 0xa8], eax
call fcn.00463e3b
add esp, 0x30
mov ecx, esi
call fcn.00418a50
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b970
sub eax, edx
push edi
inc eax
push eax
push 1
mov ecx, esi
call fcn.00418a50
push eax
call fcn.00463e3b
add esp, 0x10
mov ecx, esi
call fcn.00418a60
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b998
sub eax, edx
push edi
inc eax
push eax
push 1
mov ecx, esi
call fcn.00418a60
push eax
call fcn.00463e3b
add esp, 0x10
mov ecx, esi
call fcn.00418a40
push edi
test al, al
push 1
lea eax, [esp + 0x42]
setne dl
push 1
push eax
mov byte [esp + 0x4a], dl
call fcn.00463e3b
add esp, 0x10
mov ecx, esi
call fcn.00419140
test al, al
je 0x40b9f7
push edi
push 0xe
push 1
add esi, 0x2b4
push esi
call fcn.00463e3b
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40b7d1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00459680
mov edx, dword [esp + 0x4c]
push edx
call fcn.00459680
mov eax, dword [esp + 0x48]
push eax
call fcn.00459680
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00459680
add esp, 0x10
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
mov ecx, dword [esp + 0x80]
cmp eax, dword [ecx + 4]
mov dword [esp + 0x60], eax
jne 0x40b1a1
pop ebp
push edi
call fcn.00463f42
mov eax, dword [esp + 0x2f8]
add esp, 4
test eax, eax
je 0x40ba94
mov edi, str.AutoSave.lev
mov esi, eax
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40baa9
mov edx, 0x4c30a8
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40ba80
mov eax, dword [0x4b3118]
mov ecx, dword [eax + 0xc]
jmp 0x40ba9d
mov ecx, dword [0x4b3118]
mov ecx, dword [ecx + 0xc]
push 0
push 0x4a2660
call fcn.0042b760
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x2e4
ret 8