Function at 0x415000
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4163f6
push eax
mov dword fs:[0], esp
mov eax, 0x511c
call fcn.004bde70
push ebx
mov eax, dword [0x4e2fdc]
push esi
mov ebx, ecx
push edi
mov ecx, dword [eax + 0x300]
mov dword [ebp - 0x18], 1
cmp ecx, 0x10
jne 0x41505e
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x328]
sub eax, 0x3e0
cmp eax, 1
sbb eax, eax
and eax, 0xfffffff6
add eax, 0x235
mov dword [ebp - 0x24], eax
jmp 0x415065
mov dword [ebp - 0x24], 8
lea edi, [ebx + 0x10fc]
xor eax, eax
mov ecx, 0x1b58
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28c]
push eax
push 1
push 0x24
push ecx
call fcn.004bcd40
add esp, 0x10
test eax, eax
je 0x41638c
cmp word [ebp - 0x26a], 0x3e7
je 0x41638c
lea edi, [ebp - 0x28c]
mov ecx, 0xffffffff
mov dword [ebp - 0x10], 0
sub eax, eax
repne scasb al, byte es:[edi]
movsx eax, word [ebx + 0x7e5c]
not ecx
sub edi, ecx
mov edx, eax
shl eax, 3
mov esi, edi
sub eax, edx
mov dword [ebp - 0x14], ecx
shr ecx, 2
nop
lea edi, [ebx + eax*8 + 0x10fc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, word [ebx + 0x7e5c]
mov ecx, eax
shl eax, 3
sub eax, ecx
mov dword [ebx + eax*8 + 0x1130], 0
movsx eax, word [ebp - 0x26a]
sub eax, 5
cmp eax, 0x6c
ja case.0x415118.20
xor ecx, ecx
mov cl, byte [eax + 0x416450]
jmp dword [ecx*4 + 0x416410]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x75c]
push eax
push 1
push 0x34
push ecx
call fcn.004bcd40
add esp, 0x10
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3728]
push eax
push 1
push 0x1390
push ecx
call fcn.004bcd40
add esp, 0x10
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 8]
nop
push ecx
push edx
call fcn.004bde40
add esp, 8
mov ecx, dword [ebx + 0x1040]
cmp ecx, 0x1f4
jge 0x4152ac
push 0xec
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 0
mov esi, eax
mov eax, 0
test esi, esi
je 0x4151a3
push 1
mov ecx, esi
call fcn.0041ac80
mov ecx, dword [ebx + 0x1040]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + ecx*4 + 0x86c], eax
mov eax, dword [ebp - 0x23a0]
push eax
mov edx, dword [ebx + 0x1040]
mov ecx, dword [ebx + edx*4 + 0x86c]
xor di, di
call fcn.0041ae30
mov ecx, dword [ebp - 0x239c]
mov edx, dword [ebx + 0x1040]
push ecx
mov ecx, dword [ebx + edx*4 + 0x86c]
call fcn.0041ae10
mov al, byte [ebp - 0x3728]
test al, al
je 0x415284
movsx eax, di
push 1
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0x1098]
lea esi, [ebp + edx*2 - 0x3728]
push esi
call fcn.0045bc30
test eax, eax
je 0x415242
mov ecx, dword [ebx + 0x10dc]
mov edx, dword [ebx + 0x10e0]
push ecx
mov eax, dword [eax + 0x30]
push edx
mov esi, dword [ebx + 0x1040]
push eax
mov ecx, dword [ebx + esi*4 + 0x86c]
call fcn.0041b010
jmp 0x41526a
push esi
lea eax, [ebp - 0x728]
push str.CGUIDialog::LoadTemplate______Couldnt_load_resource__s_n
push eax
call fcn.004bd200
add esp, 0xc
lea eax, [ebp - 0x728]
mov ecx, dword [0x4e2fdc]
nop
push eax
mov esi, dword [ecx]
call dword [esi + 0x50]
inc di
movsx eax, di
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
mov al, byte [ebp + edx*2 - 0x3728]
test al, al
jne 0x4151fa
mov eax, dword [ebx + 0x1040]
movsx edx, word [ebx + 0x7e5c]
mov ecx, dword [ebx + eax*4 + 0x86c]
mov eax, edx
shl edx, 3
sub edx, eax
mov dword [ebx + edx*8 + 0x1130], ecx
inc dword [ebx + 0x1040]
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bcc60
add esp, 0xc
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x36c]
push eax
push 1
push 0x36
push ecx
call fcn.004bcd40
add esp, 0x10
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 8]
nop
push ecx
push edx
call fcn.004bde40
add esp, 8
mov ecx, dword [ebx + 0x1094]
cmp ecx, 0x14
jge 0x4153ed
push 0x1e0
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 1
mov esi, eax
mov eax, 0
test esi, esi
je 0x415338
mov eax, dword [ebx + 0x10ac]
mov ecx, dword [0x4e2fdc]
push eax
nop
mov edx, dword [ecx + 0x30c]
mov ecx, esi
push edx
call fcn.00402080
mov ecx, dword [ebx + 0x1094]
push 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + ecx*4 + 0x1044], eax
lea eax, [ebp - 0x368]
push eax
mov ecx, dword [ebx + 0x1098]
call fcn.0045bc30
test eax, eax
je 0x4153b7
movsx ecx, word [ebp - 0x36a]
movsx edx, word [ebp - 0x36c]
push 0xffffffffffffffff
mov eax, dword [eax + 0x30]
push ecx
mov esi, dword [ebx + 0x1094]
push 0xc0
push edx
push 0
mov ecx, dword [ebx + esi*4 + 0x1044]
push eax
call fcn.004022c0
movsx ecx, word [ebx + 0x7e5c]
mov esi, dword [ebx + 0x1094]
mov edx, ecx
shl ecx, 3
sub ecx, edx
mov eax, dword [ebx + esi*4 + 0x1044]
mov dword [ebx + ecx*8 + 0x1130], eax
jmp 0x4153e7
lea eax, [ebp - 0x368]
lea ecx, [ebp - 0x6c4]
push eax
push str.CGUIDialog::LoadTemplate______Couldnt_load_resource__s
push ecx
call fcn.004bd200
add esp, 0xc
lea ecx, [ebp - 0x6c4]
mov edx, dword [0x4e2fdc]
nop
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0x50]
inc dword [ebx + 0x1094]
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bcc60
add esp, 0xc
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x598]
push eax
push 1
push 0x180
push ecx
call fcn.004bcd40
add esp, 0x10
mov eax, dword [ebp - 0x598]
sub ax, 0x205
jns 0x415452
mov eax, dword [ebp - 0x598]
lea ecx, [ebp - 0x8ec]
push eax
push 0x205
push str._ERROR____DAT_file_is_too_old__Expecting_ver.__04X__DAT_file_is__04X.__n
push ecx
call fcn.004bd200
add esp, 0x10
lea ecx, [ebp - 0x8ec]
jmp 0x41547d
test ax, ax
jle 0x41548b
mov eax, dword [ebp - 0x598]
lea ecx, [ebp - 0x824]
push eax
push 0x205
push str._ERROR____EXE_file_is_too_old__you_may_need_to_recompile__Expecting_ver.__04X__DAT_file_is__04X.__n
push ecx
call fcn.004bd200
add esp, 0x10
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je case.0x415118.20
mov ax, word [ebp - 0x594]
mov cx, word [ebp - 0x592]
xor dx, dx
mov word [ebx + 0x3c], ax
mov word [ebx + 0x3e], cx
movsx eax, dx
inc dx
shl eax, 2
cmp dx, 0xa
mov ecx, dword [ebp + eax - 0x440]
mov dword [ebx + eax + 0x10b4], ecx
jl 0x4154af
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x300]
cmp ecx, 8
jne 0x4156a1
mov al, byte [ebp - 0x4fa]
test al, al
je 0x4155a6
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004bde40
add esp, 8
lea ecx, [ebp - 0x4fa]
push 1
push ecx
mov ecx, dword [ebx + 0x1098]
call fcn.0045bc30
mov edi, eax
test edi, edi
je 0x415564
push 0x18b18
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 2
mov esi, eax
mov eax, 0
test esi, esi
je 0x41554b
mov eax, dword [ebx + 0x1098]
mov ecx, dword [edi + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00404050
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x10e4], 1
mov dword [ebx + 0x10e0], eax
jmp 0x415594
lea eax, [ebp - 0x4fa]
lea ecx, [ebp - 0x660]
push eax
push str.CGUIDialog::LoadTemplate______Couldnt_load_resource__s_n
push ecx
call fcn.004bd200
add esp, 0xc
lea ecx, [ebp - 0x660]
mov edx, dword [0x4e2fdc]
nop
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0x50]
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bcc60
add esp, 0xc
mov al, byte [ebp - 0x55e]
test al, al
je 0x415677
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004bde40
add esp, 8
lea ecx, [ebp - 0x55e]
push 1
push ecx
mov ecx, dword [ebx + 0x1098]
call fcn.0045bc30
mov edi, eax
test edi, edi
je 0x415635
push 0x720
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 3
mov esi, eax
mov eax, 0
test esi, esi
je 0x415612
mov eax, dword [ebx + 0x1098]
mov ecx, dword [edi + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.004012c0
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x10e8], 1
mov dword [ebx + 0x10e4], 1
mov dword [ebx + 0x10dc], eax
jmp 0x415665
lea eax, [ebp - 0x55e]
lea ecx, [ebp - 0x5fc]
push eax
push str.CGUIDialog::LoadTemplate______Couldnt_load_resource__s_n
push ecx
call fcn.004bd200
add esp, 0xc
lea ecx, [ebp - 0x5fc]
mov edx, dword [0x4e2fdc]
nop
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0x50]
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bcc60
add esp, 0xc
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x4156a1
call fcn.0048ee00
mov eax, dword [ebx + 0x10dc]
mov ecx, dword [ebx + 0x10e0]
push eax
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0048ee70
mov ecx, dword [ebx + 0x38]
call fcn.0048ebd0
mov al, byte [ebp - 0x4c8]
test al, al
je 0x4156bf
lea eax, [ebp - 0x4c8]
mov ecx, ebx
push eax
call fcn.00416530
mov dword [ebx + 0x103c], eax
mov al, byte [ebp - 0x590]
test al, al
je 0x4157fc
mov eax, dword [ebx + 0x10a0]
test eax, eax
je 0x4157fc
push 0
lea eax, [ebp - 0x590]
push eax
call fcn.00477b30
add esp, 8
mov edi, eax
test edi, edi
je case.0x415118.20
mov dword [ebx + 0x10a8], 1
mov eax, dword [ebx + 0x7e64]
test eax, eax
jne 0x41573d
push 0x28
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 4
mov esi, eax
mov eax, 0
test esi, esi
je 0x415730
mov ecx, esi
call fcn.004405b0
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x7e64], eax
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x415753
mov eax, dword [ebx + 0x10a0]
mov ecx, dword [eax + 0x30]
mov dword [ebx + 0x10a4], ecx
push 0x9c
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 5
mov esi, eax
mov eax, 0
test esi, esi
je 0x415783
mov eax, dword [ebx + 0x7e64]
mov ecx, esi
push eax
call fcn.00440a00
mov ecx, dword [ebx + 0x10a0]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 0x30], eax
mov eax, dword [ebx + 0x10dc]
test eax, eax
je 0x4157a5
mov eax, dword [eax + 0x710]
jmp 0x4157a7
xor eax, eax
movsx ecx, word [edi + 0xe]
push 0xff00ff
push pe_nt_image_headers32
push 0
push 1
push 2
push 0
push 0
mov edx, dword [ebp - 0x24]
push eax
push 4
movsx esi, word [edi + 0x10]
mov eax, dword [ebx + 0x10e0]
push eax
push edx
push 0x22b
mov eax, dword [edi + 0x14]
push ecx
mov edx, dword [ebx + 0x10a0]
push ecx
push esi
push ecx
push eax
mov ecx, dword [edx + 0x30]
call fcn.004410b0
mov ecx, dword [ebx + 0x10a0]
call fcn.00421c40
jmp case.0x415118.20
mov eax, dword [ebx + 0x34]
test eax, eax
je case.0x415118.20
mov eax, dword [eax + 0x10a0]
mov dword [ebx + 0x10a0], eax
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x334]
nop
push ecx
push 1
push 0xa5
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 1
call fcn.00414ab0
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b220
lea ecx, [ebp - 0x313]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b240
lea ecx, [ebp - 0x2f2]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b260
lea ecx, [ebp - 0x2d1]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b280
lea ecx, [ebp - 0x2b0]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b2a0
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x5128]
nop
push ecx
push 1
push 0x19fe
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 2
call fcn.00414ab0
mov ecx, dword [ebp - 0x5128]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, eax
xor si, si
call fcn.0041d6b0
mov ecx, dword [ebp - 0x372c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041da60
movsx ecx, si
lea eax, [ecx*4]
lea edx, [eax + eax*4]
lea edi, [edx + edx*4]
mov dl, byte [ebp + edi - 0x4ab4]
lea eax, [ebp + edi - 0x4ab4]
test dl, dl
mov dword [0x4ec3a8], eax
jne 0x415985
mov dword [0x4ec3a8], 0
mov eax, dword [0x4ec3a8]
push eax
mov eax, ecx
shl eax, 5
add eax, ecx
lea ecx, [ebp + eax - 0x5126]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0041d810
inc si
cmp si, 0x32
jl 0x415954
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2398]
nop
push ecx
push 1
push 0x1aac
push edx
call fcn.004bcd40
add esp, 0x10
push 0x174
call fcn.0045b6b0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 6
mov esi, eax
mov eax, 0
test esi, esi
je 0x415a26
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x2398]
push eax
push ecx
push 0
mov ecx, esi
call fcn.0041be20
mov dword [ebp - 4], 0xffffffff
movsx ecx, word [ebp - 0x254]
push ecx
push eax
mov ecx, ebx
call fcn.00414ef0
cmp word [ebp - 0x2396], 1
mov dword [ebp - 0x10], eax
sbb eax, eax
mov ecx, dword [ebp - 0x10]
inc eax
push eax
call fcn.0041ceb0
mov ecx, dword [ebp - 0x904]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041c300
movsx ecx, word [ebp - 0x902]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041d200
mov ecx, dword [ebp - 0x900]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041c3f0
mov ecx, dword [ebp - 0x8f4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041d220
mov ecx, dword [ebp - 0x8f0]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041d210
mov ecx, dword [ebp - 0x8fc]
push ecx
mov ecx, dword [ebp - 0x10]
mov di, 1
call fcn.0041c510
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x8f8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041c410
mov al, byte [ebp - 0x234e]
test al, al
je case.0x415118.20
movsx eax, di
mov ecx, eax
push 0
shl eax, 4
push 0
add eax, ecx
lea ecx, [eax*4]
mov dl, byte [ebp + ecx - 0x2392]
lea eax, [ebp + ecx - 0x2392]
cmp dl, 0x40
jne 0x415b14
lea eax, [ebp + ecx - 0x2391]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041cb00
jmp 0x415b1d
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041c5c0
inc di
movsx eax, di
mov ecx, eax
shl eax, 4
add eax, ecx
mov cl, byte [ebp + eax*4 - 0x2392]
test cl, cl
jne 0x415ad2
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x418]
nop
push ecx
push 1
push 0x44
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 4
call fcn.00414ab0
mov ecx, dword [ebp - 0x3d6]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, eax
call fcn.0041da60
push 0
lea ecx, [ebp - 0x418]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 0
call fcn.0041d810
push 0
lea ecx, [ebp - 0x3f7]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 1
call fcn.0041d810
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x390]
nop
push ecx
push 1
push 0x21
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 5
call fcn.00414ab0
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 0
mov esi, dword [ecx]
call dword [esi + 0x28]
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x4c]
nop
push ecx
push 1
push 0x28
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 8
call fcn.00414ab0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, eax
call fcn.0041bd50
cmp word [ebp - 0x4c], 0
je 0x415ca2
movsx eax, word [ebp - 0x4c]
jmp 0x415cb1
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x264]
sub eax, ecx
inc eax
push eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4a]
push eax
call fcn.0041bc70
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
lea ecx, [ebp - 0x46]
push ecx
mov ecx, ebx
mov esi, dword [eax + 0x28]
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 0
call esi
lea eax, [ebp - 0x46]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 1
call esi
lea eax, [ebp - 0x46]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 2
call esi
lea eax, [ebp - 0x46]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 3
call esi
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x138], ax
push 0
call fcn.0041bad0
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x4c]
nop
push ecx
push 1
push 0x28
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 9
call fcn.00414ab0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, eax
call fcn.0041bd50
cmp word [ebp - 0x4c], 0
je 0x415d90
movsx eax, word [ebp - 0x4c]
jmp 0x415d9f
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x264]
sub eax, ecx
inc eax
push eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4a]
push eax
call fcn.0041bc70
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
lea ecx, [ebp - 0x46]
push ecx
mov ecx, ebx
mov esi, dword [eax + 0x28]
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 0
call esi
lea eax, [ebp - 0x46]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 1
call esi
lea eax, [ebp - 0x46]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 2
call esi
lea eax, [ebp - 0x46]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 3
call esi
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x138], ax
push 0
call fcn.0041bad0
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x334]
nop
push ecx
push 1
push 0xa5
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 0xa
call fcn.00414ab0
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b220
lea ecx, [ebp - 0x313]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b240
lea ecx, [ebp - 0x2f2]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b260
lea ecx, [ebp - 0x2d1]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b280
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x334]
nop
push ecx
push 1
push 0xa5
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 0xb
call fcn.00414ab0
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b220
lea ecx, [ebp - 0x313]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b240
lea ecx, [ebp - 0x2f2]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b260
lea ecx, [ebp - 0x2d1]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b280
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x3d4]
nop
push ecx
push 1
push 0x44
push edx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 0xc
call fcn.00414ab0
mov ecx, dword [ebp - 0x3d4]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, eax
call fcn.0041b4c0
lea ecx, [ebp - 0x3d2]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b5d0
lea ecx, [ebp - 0x3b1]
push ecx
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041b5e0
jmp case.0x415118.20
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push eax
push 1
push 0x21c
push ecx
call fcn.004bcd40
add esp, 0x10
lea edx, [ebp - 0x264]
movsx ecx, word [ebp - 0x254]
push ecx
push edx
push 0
mov ecx, ebx
push 0xd
call fcn.00414ab0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x416373
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x416381
movsx eax, word [ebp - 0x252]
mov ecx, dword [ebp - 0x10]
push eax
mov esi, dword [ecx]
call dword [esi + 0x40]
movsx eax, word [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x30]
lea eax, [ebp - 0x1c7]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x2c]
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x10]
push eax
call dword [esi + 0x34]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x4160ae
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], 1
movsx eax, word [ebp - 0x24e]
push eax
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x50]
mov al, byte [ebp - 0x24c]
test al, al
je 0x4160d3
lea eax, [ebp - 0x24c]
mov ecx, dword [ebp - 0x10]
push eax
call dword [esi + 0x5c]
cmp word [ebp - 0x250], 1
sbb eax, eax
mov ecx, dword [ebp - 0x10]
inc eax
push eax
call dword [esi + 0x68]
mov ecx, dword [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x60]
mov ecx, dword [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x64]
mov di, 8
push 0x4e0648
lea ecx, [ebp - 0x192]
push ecx
call fcn.004bdf70
add esp, 8
test eax, eax
je 0x41613b
push str.BOTTOM
lea eax, [ebp - 0x192]
push eax
call fcn.004bdf70
add esp, 8
cmp eax, 1
sbb edi, edi
and edi, 0x10
add di, 0x10
push str.RIGHT
lea eax, [ebp - 0x1a6]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
jne 0x416159
or di, 4
jmp 0x416197
push str.CENTER
lea eax, [ebp - 0x1a6]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
je case.0x416186.1
mov ecx, dword [ebp - 0x10]
movsx ecx, word [ecx + 0x1c]
dec ecx
cmp ecx, 0xa
ja case.0x416186.4
xor eax, eax
mov al, byte [ecx + 0x4164d0]
jmp dword [eax*4 + 0x4164c0]
or di, 1
jmp 0x416197
or di, 2
push edi
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x6c]
push str.GROW
lea eax, [ebp - 0x17e]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
jne 0x4161d7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1e8]
push 1
push ecx
mov ecx, ebx
call fcn.00416530
push eax
push 0x64
jmp 0x4162b0
push str.LSLIDE
lea eax, [ebp - 0x17e]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
jne 0x416210
push 0xffffffffffffffff
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1e8]
push 1
push ecx
mov ecx, ebx
call fcn.00416530
push eax
push 0x65
jmp 0x4162b0
push str.TSLIDE
lea eax, [ebp - 0x17e]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
jne 0x416246
push 0xffffffffffffffff
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1e8]
push 1
push ecx
mov ecx, ebx
call fcn.00416530
push eax
push 0x67
jmp 0x4162b0
push str.RSLIDE
lea eax, [ebp - 0x17e]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
jne 0x41627c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1e8]
push 1
push ecx
mov ecx, ebx
call fcn.00416530
push eax
push 0x66
jmp 0x4162b0
push str.BSLIDE
lea eax, [ebp - 0x17e]
push eax
call fcn.004bdf70
add esp, 8
test eax, eax
jne 0x4162b6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1e8]
push 1
push ecx
mov ecx, ebx
call fcn.00416530
push eax
push 0x68
mov ecx, dword [ebp - 0x10]
call dword [esi + 0x48]
mov edi, dword [esi + 0x20]
lea eax, [ebp - 0x11c]
push eax
mov ecx, ebx
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 0
call edi
lea eax, [ebp - 0xfb]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 1
call edi
lea eax, [ebp - 0xda]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 2
call edi
lea eax, [ebp - 0xb9]
mov ecx, ebx
push eax
call fcn.00416530
push eax
mov ecx, dword [ebp - 0x10]
push 3
call edi
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc4], eax
mov edx, dword [ebp - 0x88]
mov dword [ecx + 0xc8], edx
mov eax, dword [ebp - 0x84]
mov dword [ecx + 0xcc], eax
cmp word [ebp - 0x268], 1
sbb eax, eax
inc eax
push eax
call dword [esi + 0x10]
lea ecx, [ebp - 0x149]
push ecx
mov ecx, ebx
call fcn.00416530
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x90], eax
movsx edx, word [ebx + 0x7e5c]
mov eax, edx
shl edx, 3
sub edx, eax
mov dword [ebx + edx*8 + 0x1130], ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41638c
inc word [ebx + 0x7e5c]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x415074
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
cmp eax, 1
sbb eax, eax
pop ebx
inc eax
mov esp, ebp
pop ebp
ret 4