Function at 0x40f8a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x12c
mov ecx, dword [esp + 0x130]
mov eax, dword [ecx]
mov dl, byte [eax]
push esi
xor esi, esi
test dl, 0x40
mov byte [esp + 4], dl
je 0x40f8ce
push ecx
call fcn.0040f6c0
add esp, 4
pop esi
add esp, 0x12c
ret
inc eax
test dl, 0x80
mov dword [ecx], eax
je 0x40f8e2
and dl, 0x7f
mov esi, 1
mov byte [esp + 4], dl
mov edx, dword [esp + 4]
and edx, 0xff
add edx, 0xfffffffe
cmp edx, 0x11
push edi
ja case.default.0x40f8f9
jmp dword [edx*4 + 0x40ff28]
test esi, esi
je 0x40f933
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
mov ecx, dword [edx*4 + 0x512780]
pop edi
add eax, ecx
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
pop edi
mov dword [ecx], eax
pop esi
mov eax, dword [edx*4 + 0x512780]
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40f980
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
add eax, dword [edx*4 + 0x512780]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
mov eax, dword [edx*4 + 0x512780]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
test esi, esi
je 0x40f9da
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
mov esi, dword [eax*4 + 0x6197c4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx*8]
add ecx, edx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx*4 + 0x619fc8]
mov ecx, dword [edx*4 + 0x714f68]
pop edi
add eax, ecx
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
lea ecx, [eax + eax*4]
mov eax, dword [eax*4 + 0x6197c4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*8]
add ecx, edx
mov eax, dword [ecx*4 + 0x619fc8]
pop edi
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
mov eax, dword [0x71a658]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
je 0x40fa56
mov esi, dword [eax*4 + 0x6197c4]
lea ecx, [esi + ecx*8]
add ecx, edx
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx*4 + 0x619fc8]
add eax, dword [edx*4 + 0x714f68]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
mov eax, dword [eax*4 + 0x6197c4]
lea ecx, [eax + ecx*8]
add ecx, edx
mov eax, dword [ecx*4 + 0x619fc8]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
test esi, esi
je 0x40fab3
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*8]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx*4 + 0x513720]
mov edx, dword [ecx*4 + 0x714f68]
pop edi
add eax, edx
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [edx + eax*8]
mov eax, dword [ecx*4 + 0x513720]
pop edi
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
mov eax, dword [0x71a658]
je 0x40fb1d
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*8]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx*4 + 0x513720]
add eax, dword [ecx*4 + 0x714f68]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [edx + eax*8]
mov eax, dword [ecx*4 + 0x513720]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
test esi, esi
je 0x40fb6e
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx*4 + 0x60e6c0]
mov edx, dword [ecx*4 + 0x714f68]
pop edi
add eax, edx
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
pop edi
mov dword [ecx], eax
pop esi
mov eax, dword [edx*4 + 0x60e6c0]
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40fbbb
mov eax, dword [0x71a658]
mov edx, dword [edx*4 + 0x60e6c0]
mov ecx, eax
shl ecx, 4
add ecx, eax
add edx, dword [ecx*4 + 0x714f68]
mov eax, dword [edx]
pop edi
pop esi
add esp, 0x12c
ret
mov edx, dword [edx*4 + 0x60e6c0]
mov eax, dword [edx]
pop edi
pop esi
add esp, 0x12c
ret
test esi, esi
je 0x40fc00
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov ecx, dword [0x71a658]
xor eax, eax
pop edi
pop esi
mov al, byte [edx + 0x4fcb60]
mov edx, ecx
shl edx, 4
add edx, ecx
add eax, dword [edx*4 + 0x714f68]
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
mov al, byte [edx + 0x4fcb60]
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40fc56
mov ecx, dword [0x71a658]
xor eax, eax
mov al, byte [edx + 0x4fcb60]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [edx*4 + 0x714f68]
pop edi
pop esi
add eax, ecx
xor ecx, ecx
mov cl, byte [eax]
mov eax, ecx
add esp, 0x12c
ret
xor eax, eax
mov al, byte [edx + 0x4fcb60]
xor ecx, ecx
pop edi
pop esi
mov cl, byte [eax]
mov eax, ecx
add esp, 0x12c
ret
test esi, esi
mov edx, dword [eax]
je 0x40fc96
add eax, 4
mov dword [ecx], eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
pop edi
add eax, edx
pop esi
add esp, 0x12c
ret
add eax, 4
pop edi
mov dword [ecx], eax
mov eax, edx
pop esi
add esp, 0x12c
ret
mov edx, dword [eax]
add eax, 4
test esi, esi
mov dword [ecx], eax
je 0x40fcd1
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
add eax, edx
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
mov eax, edx
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
mov dl, byte [eax]
test dl, dl
lea esi, [eax + 1]
mov dword [ecx], esi
je 0x40ff1e
mov esi, dword [ecx]
mov dl, byte [esi]
inc esi
test dl, dl
mov dword [ecx], esi
jne 0x40fced
pop edi
pop esi
add esp, 0x12c
ret
mov dl, byte [eax]
xor edi, edi
cmp dl, 0x2e
jne 0x40fd12
inc eax
mov dword [ecx], eax
mov edi, 1
mov esi, dword [ecx]
mov dl, byte [esi]
test dl, dl
lea eax, [esi + 1]
mov dword [ecx], eax
je 0x40fd28
mov dl, byte [eax]
inc eax
test dl, dl
mov dword [ecx], eax
jne 0x40fd1f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], esi
call fcn.00402970
fstp dword [esp + 0x10]
add esp, 8
test edi, edi
je 0x40ff1a
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x12c
ret
test esi, esi
je 0x40fd8b
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [0x71a654]
mov eax, dword [eax + edx*4]
mov edx, dword [ecx*4 + 0x714f68]
pop edi
add eax, edx
pop esi
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov ecx, dword [0x71a654]
pop edi
pop esi
mov eax, dword [ecx + edx*4]
add esp, 0x12c
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40fddb
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [0x71a654]
mov edx, dword [eax + edx*4]
add edx, dword [ecx*4 + 0x714f68]
mov eax, dword [edx]
pop edi
pop esi
add esp, 0x12c
ret
mov ecx, dword [0x71a654]
mov edx, dword [ecx + edx*4]
mov eax, dword [edx]
pop edi
pop esi
add esp, 0x12c
ret
lea edx, [esp + 0x34]
mov dword [esp + 8], edx
mov dl, byte [eax]
test dl, dl
lea edi, [eax + 1]
mov dword [ecx], edi
je 0x40fe0d
mov edi, dword [ecx]
mov dl, byte [edi]
inc edi
test dl, dl
mov dword [ecx], edi
jne 0x40fe02
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push 0x45d7b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
call section..text
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00428d50
add esp, 0x20
test esi, esi
je 0x40ff1a
mov eax, dword [0x71a658]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [edx*4 + 0x714f68]
pop edi
add eax, ecx
pop esi
add esp, 0x12c
ret
lea edx, [esp + 0x34]
mov dword [esp + 8], edx
mov dl, byte [eax]
test dl, dl
lea edi, [eax + 1]
mov dword [ecx], edi
je 0x40fe8c
mov edi, dword [ecx]
mov dl, byte [edi]
inc edi
test dl, dl
mov dword [ecx], edi
jne 0x40fe81
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push 0x45d7b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
call section..text
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00428d50
add esp, 0x20
test esi, esi
je 0x40feeb
mov eax, dword [0x71a658]
mov ecx, dword [esp + 0xc]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [edx*4 + 0x714f68]
add eax, ecx
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
pop edi
pop esi
add esp, 0x12c
ret
push str.Script_Error._GetVar_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7199b0]
push 0x30
push 0
push str.Script_Error._GetVar_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x12c
ret