Function at 0x40f1a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x128
mov ecx, dword [esp + 0x12c]
mov eax, dword [ecx]
mov dl, byte [eax]
push esi
xor esi, esi
inc eax
test dl, 0x80
mov byte [esp + 4], dl
mov dword [ecx], eax
je 0x40f1cc
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
ja case.0x40f1e2.4
jmp dword [edx*4 + 0x40f66c]
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [esp + 0x134]
pop esi
mov dword [edx*4 + 0x512780], eax
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40f244
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]
mov edx, dword [esp + 0x134]
add eax, ecx
mov dword [eax], edx
pop esi
add esp, 0x128
ret
mov eax, dword [edx*4 + 0x512780]
mov edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
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 edx, dword [esp + 0x134]
mov dword [ecx*4 + 0x619fc8], edx
pop esi
add esp, 0x128
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 0x40f2e6
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]
mov ecx, dword [edx*4 + 0x714f68]
mov edx, dword [esp + 0x134]
add eax, ecx
mov dword [eax], edx
pop esi
add esp, 0x128
ret
mov eax, dword [eax*4 + 0x6197c4]
lea ecx, [eax + ecx*8]
add ecx, edx
mov eax, dword [ecx*4 + 0x619fc8]
mov edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
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 edx, dword [esp + 0x134]
mov dword [ecx*4 + 0x513720], edx
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
mov eax, dword [0x71a658]
je 0x40f380
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 edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
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 edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [esp + 0x134]
pop esi
mov dword [edx*4 + 0x60e6c0], eax
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40f3ff
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
mov ecx, dword [edx*4 + 0x60e6c0]
mov edx, dword [esp + 0x134]
add eax, ecx
mov dword [eax], edx
pop esi
add esp, 0x128
ret
mov eax, dword [edx*4 + 0x60e6c0]
mov edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov al, byte [esp + 0x134]
and al, 1
pop esi
mov byte [edx + 0x4fcb60], al
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40f478
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 esi
add eax, ecx
mov cl, byte [esp + 0x130]
and cl, 1
mov byte [eax], cl
add esp, 0x128
ret
mov cl, byte [esp + 0x134]
xor eax, eax
mov al, byte [edx + 0x4fcb60]
and cl, 1
pop esi
mov byte [eax], cl
add esp, 0x128
ret
mov edx, dword [eax]
add eax, 4
test esi, esi
mov dword [ecx], eax
je 0x40f4c5
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
add eax, edx
mov edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
ret
mov eax, edx
mov edx, dword [esp + 0x134]
mov dword [eax], edx
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [esp + 0x134]
mov ecx, dword [0x71a654]
pop esi
mov dword [ecx + edx*4], eax
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
test esi, esi
mov dword [ecx], eax
je 0x40f534
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 [esp + 0x134]
mov dword [edx], eax
pop esi
add esp, 0x128
ret
mov ecx, dword [0x71a654]
mov edx, dword [ecx + edx*4]
mov eax, dword [esp + 0x134]
mov dword [edx], eax
pop esi
add esp, 0x128
ret
lea edx, [esp + 0x2c]
mov dword [esp + 4], edx
mov dl, byte [eax]
test dl, dl
lea esi, [eax + 1]
mov dword [ecx], esi
je 0x40f56c
mov esi, dword [ecx]
mov dl, byte [esi]
inc esi
test dl, dl
mov dword [ecx], esi
jne 0x40f561
push eax
lea eax, [esp + 0x30]
push 0x45d7b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
call section..text
push eax
mov eax, dword [esp + 0x14c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00428f90
add esp, 0x20
pop esi
add esp, 0x128
ret
lea edx, [esp + 0x2c]
mov dword [esp + 4], edx
mov dl, byte [eax]
test dl, dl
push edi
lea edi, [eax + 1]
mov dword [ecx], edi
je 0x40f5c9
mov edi, dword [ecx]
mov dl, byte [edi]
inc edi
test dl, dl
mov dword [ecx], edi
jne 0x40f5be
push eax
lea eax, [esp + 0x34]
push 0x45d7b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call section..text
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00428d50
add esp, 0x20
test esi, esi
pop edi
je 0x40f62b
mov eax, dword [0x71a658]
mov ecx, dword [esp + 8]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [edx*4 + 0x714f68]
add eax, ecx
mov ecx, dword [esp + 0x134]
mov dword [eax], ecx
pop esi
add esp, 0x128
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x134]
mov dword [eax], ecx
pop esi
add esp, 0x128
ret
push str.Script_Error._SetVar_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x7199b0]
push 0x30
push 0
push str.Script_Error._SetVar_
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
add esp, 0x128
ret