Function at 0x410244
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4be250
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebx + 0x34]
mov esi, ecx
push dword [ebx + 0x30]
mov eax, dword [esi]
call dword [eax + 0x5c]
test al, al
jne 0x41028e
mov al, byte [esi + 0x241]
neg al
sbb eax, eax
and eax, 3
jmp 0x41043e
mov edi, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
push dword [ebp + 8]
sub edi, dword [esi + 0x74]
sub ebx, dword [esi + 0x78]
mov ecx, esi
call fcn.004338bd
cmp eax, 1
mov dword [esp + 0x14], eax
jne 0x4102d6
push str.bclose
lea ecx, [esi + 0x1cc]
call fcn.00419b40
test al, al
je 0x4102d6
mov ecx, dword [0x509694]
push 0
call fcn.004077e5
push 2
pop eax
jmp 0x41043e
mov ecx, dword [esi + 0x258]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x410319
mov ecx, dword [esi + 0x258]
mov byte [esi + 0x243], 0
mov dword [esi + 0x274], ecx
mov eax, dword [ecx]
call dword [eax + 0x6c]
sub edi, eax
mov dword [esi + 0x280], edi
mov esi, dword [esi + 0x27c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
jmp 0x41057d
mov ecx, dword [esi + 0x254]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x41037a
mov ecx, dword [esi + 0x254]
xor ebx, ebx
mov byte [esi + 0x243], bl
mov dword [esi + 0x274], ecx
mov eax, dword [ecx]
call dword [eax + 0x6c]
sub edi, eax
mov dword [esi + 0x280], edi
lea edi, [esi + 0x278]
mov ecx, dword [edi]
call fcn.0041d150
test eax, eax
jne 0x41036e
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov byte [esi + 0x28c], bl
jmp 0x41057d
mov byte [esi + 0x28c], 1
jmp 0x41057d
mov ecx, dword [esi + 0x25c]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x4103c7
mov ecx, dword [esi + 0x25c]
xor edi, edi
xor ebx, ebx
mov byte [esi + 0x243], bl
mov eax, dword [ecx]
inc edi
push edi
call dword [eax + 0x58]
mov ecx, dword [esi + 0x260]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x58]
push ebx
push str.DIFFICULTY
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], ebx
push edi
jmp 0x410413
mov ecx, dword [esi + 0x260]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x410455
mov ecx, dword [esi + 0x25c]
xor ebx, ebx
mov byte [esi + 0x243], bl
mov eax, dword [ecx]
push ebx
call dword [eax + 0x58]
mov ecx, dword [esi + 0x260]
mov eax, dword [ecx]
xor edi, edi
inc edi
push edi
call dword [eax + 0x58]
push ebx
push str.DIFFICULTY
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], edi
push 2
mov esi, dword [esi + 0x24c]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x40]
or dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004190d0
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x268]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x4104d8
mov ecx, dword [0x509694]
xor ebx, ebx
push ebx
call fcn.004077e5
mov ecx, dword [esi + 0x268]
mov byte [esi + 0x243], bl
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [esi + 0x268]
test al, al
mov eax, dword [ecx]
je 0x4104b4
push ebx
call dword [eax + 0x58]
push ebx
push str.hiliteBlocks
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], 2
jmp 0x410536
push 1
call dword [eax + 0x58]
push ebx
push str.hiliteBlocks
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], 3
jmp 0x410558
mov ecx, dword [esi + 0x26c]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x41058a
mov ecx, dword [0x509694]
xor ebx, ebx
push ebx
call fcn.004077e5
mov ecx, dword [esi + 0x26c]
mov byte [esi + 0x243], bl
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [esi + 0x26c]
test al, al
mov eax, dword [ecx]
je 0x410539
push ebx
call dword [eax + 0x58]
push ebx
push str.specialFX
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], 4
push ebx
jmp 0x41055a
push 1
call dword [eax + 0x58]
push ebx
push str.specialFX
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], 5
push 1
mov esi, dword [esi + 0x24c]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x40]
or dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004190d0
mov dword [esp + 0x14], 1
jmp 0x41043a
mov ecx, dword [esi + 0x264]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0x5c]
test al, al
je 0x41043a
mov ecx, dword [0x509694]
xor ebx, ebx
push ebx
call fcn.004077e5
mov eax, dword [esi + 0x250]
mov al, byte [eax + 0x120]
mov ecx, dword [esi + 0x264]
mov byte [esp + 0x13], al
mov byte [esi + 0x243], bl
mov eax, dword [ecx]
call dword [eax + 0x64]
test al, al
push ebx
push str.FULLSCREEN
je 0x410624
lea ecx, [esp + 0x20]
call fcn.00418c20
mov dword [esp + 0x94], 6
mov ecx, dword [esi + 0x24c]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0x40]
or dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004190d0
mov ecx, dword [esi + 0x264]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x58]
cmp byte [esp + 0x13], bl
je 0x41067f
push ebx
push ebx
jmp 0x410671
lea ecx, [esp + 0x58]
call fcn.00418c20
mov dword [esp + 0x94], 7
mov ecx, dword [esi + 0x24c]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x54]
push edx
call dword [eax + 0x40]
or dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.004190d0
mov ecx, dword [esi + 0x264]
mov eax, dword [ecx]
push 1
call dword [eax + 0x58]
cmp byte [esp + 0x13], bl
jne 0x41067f
push ebx
push 1
mov ecx, dword [esi + 0x250]
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov edx, dword [esi + 0x250]
movzx edx, byte [edx + 0x120]
mov ecx, dword [esi + 0x264]
mov eax, dword [ecx]
push edx
call dword [eax + 0x58]
xor eax, eax
inc eax
jmp 0x41043e