Function at 0x40f5e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x4f7ef8]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, 0xc
push edi
mov edi, ecx
mov dword [ebp - 0x238], eax
xor ebx, ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x240], ecx
mov edx, dword [edi + 0xefc]
mov dword [ebp - 0x23c], edx
test ecx, ecx
je 0x40f62e
cmp ecx, 2
je 0x40f62e
cmp ecx, 3
jne 0x40f642
push esi
mov ecx, edi
call fcn.0040f3d0
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
cmp ecx, 0x12c
jg 0x40f8aa
je 0x40f88d
cmp ecx, 0xcc
ja case.0x410710.1610
movzx eax, byte [ecx + 0x4108a4]
jmp dword [eax*4 + 0x410884]
push 0
push dword [esi + 0x1c]
mov esi, dword [ebp - 0x238]
mov ecx, esi
call fcn.00469a20
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [0x4f7ef8]
mov ecx, dword [eax + 4]
xor eax, eax
jmp 0x410734
push dword [esi + 0x1c]
call fcn.00402910
mov ebx, 1
jmp 0x40fb49
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0xc], ebx
lea eax, [esi + 0xc]
je 0x40f6b6
cmp dword [esi + 0x18], ebx
jmp 0x40f6bc
cmp dword [edi + 0x4f190], ebx
je 0x40f6e3
test edx, edx
jne 0x40f6e3
push edx
push ecx
push eax
lea ecx, [edi + 0x4f178]
call fcn.004458d0
cmp dword [esi + 0x20], ebx
jne 0x40fb29
mov ebx, 1
jmp 0x40fb49
push 1
push ecx
push eax
lea ecx, [edi + 0x4f178]
call fcn.004458d0
mov ebx, 1
jmp 0x40fb49
mov esi, dword [esi + 0x1c]
lea ecx, [edi + 0x4f218]
test edx, edx
je 0x40f71b
push 1
push esi
call fcn.00445340
mov ebx, 1
jmp 0x40fb49
push 0
push esi
call fcn.00445340
cmp dword [esi + 0x14], ebx
je case.0x40f8d4.500
cmp dword [esi + 0x18], ebx
jne 0x40fb29
mov ebx, 1
jmp 0x40fb49
mov esi, dword [esi + 0x1c]
mov ecx, dword [edi + 0x4f1c8]
mov dword [edi + 0x4f1b8], ebx
lea ebx, [edi + 0x4f1cc]
test ecx, ecx
je 0x40f76d
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [edi + 0x4f1c8], 0
mov dword [ebx], 0
mov eax, dword [esi + 0xc]
test eax, eax
je case.0x40f8d4.500
mov ecx, dword [0x4f7d4c]
mov dword [edi + 0x4f1b8], eax
mov dword [edi + 0x4f1c0], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x4f1c4], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x4f1bc], eax
mov dword [edi + 0x4f1d0], 0
mov eax, dword [esi + 0x14]
inc eax
mov dword [edi + 0x4f1d4], eax
mov eax, dword [ecx]
call dword [eax + 0x88]
mov ecx, eax
push ebx
push dword [0x4f7dd4]
mov dword [edi + 0x4f1c8], ecx
mov eax, dword [ecx]
push dword [0x4f7dcc]
call dword [eax + 0xc]
mov ebx, 1
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
mov word [edi + 0x4f194], bx
mov byte [edi + 0x4f196], bl
mov dword [edi + 0x4f1a0], 1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40f818
cmp eax, 1
jne 0x40f80e
mov dword [edi + 0x4f184], ebx
jmp 0x40f822
mov dword [edi + 0x4f1a0], 2
mov dword [edi + 0x4f184], 0xff
lea eax, [ebp - 0x234]
mov dword [ebp - 0x230], ebx
push eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - method.MESSAGEERASE.virtual_0], vtable.MESSAGEERASE.0
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], 1
call fcn.00402910
lea ecx, [edi + 0x56f60]
call fcn.00444b60
lea ecx, [edi + 0x56f74]
call fcn.00444920
lea ecx, [edi + 0x56f58]
call fcn.00444c50
mov ebx, 1
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
mov ecx, edi
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00410ea0
mov ebx, 1
jmp 0x40fb49
cmp ecx, 0x3e8
jg 0x410199
je 0x41014c
lea eax, [ecx - 0x12d]
cmp eax, 0xd1
ja case.0x410710.1610
movzx eax, byte [eax + 0x4109cc]
jmp dword [eax*4 + 0x410974]
lea eax, [edi + 0x56f60]
mov dword [ebp - 0x238], eax
test edx, edx
je 0x40f8fc
mov ecx, eax
call fcn.004449c0
mov ebx, 1
jmp 0x40fb49
mov ebx, dword [eax]
mov esi, dword [esi + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40f91c
mov eax, dword [esi + 0xc]
nop
cmp dword [ecx + 0xc], eax
je 0x40f967
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x40f910
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov ecx, ebx
mov edi, eax
call fcn.0048cf80
cwde
mov dword [edi + 8], eax
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40f949
nop dword [eax]
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x40f940
push esi
mov ecx, edi
mov dword [edx + 4], edi
call fcn.00443560
cmp dword [esi + 0x20], 0
mov eax, dword [0x4f7d20]
je 0x40f977
mov esi, dword [eax + 0x56f68]
jmp 0x40f97d
push esi
call fcn.00443560
mov ebx, 1
jmp 0x40fb49
mov esi, dword [eax + 0x56f6c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ebx, eax
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0x2711
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40f9a9
nop
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x40f9a0
mov eax, dword [ebp - 0x238]
mov dword [edx + 4], ebx
mov ebx, 1
mov dword [eax + 4], edi
jmp 0x40fb49
mov eax, dword [edi + 0x56f60]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
cmp dword [ecx + 0x14], ebx
je 0x40fa55
test edx, edx
je case.0x40f8d4.500
nop
cmp dword [edx + 0xb8], 0
mov dword [edx + 0xb4], 0
jne 0x40fa46
mov esi, dword [edi + 0x56f60]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x40fa1c
mov eax, dword [ebx + 4]
cmp eax, edx
je 0x40fa0f
mov ebx, eax
test ebx, ebx
jne 0x40fa00
jmp 0x40fa1c
mov eax, dword [edx + 4]
mov ecx, edx
mov dword [ebx + 4], eax
mov eax, dword [edx]
call dword [eax + 0x10]
mov eax, dword [esi + 4]
cmp ebx, eax
jne 0x40fa26
mov ebx, dword [eax + 4]
mov esi, dword [0x4f7d20]
push dword [esi + 0x56f68]
call fcn.00444d30
push dword [esi + 0x56f6c]
call fcn.00444d30
mov edx, ebx
jmp 0x40fa49
mov edx, dword [edx + 4]
test edx, edx
jne 0x40f9e0
lea ebx, [edx + 1]
jmp 0x40fb49
test edx, edx
je case.0x40f8d4.500
mov eax, dword [ecx + 0xc]
cmp dword [edx + 0xc], eax
je 0x40fa74
mov edx, dword [edx + 4]
test edx, edx
jne 0x40fa60
lea ebx, [edx + 1]
jmp 0x40fb49
mov dword [edx + 0xb4], ebx
cmp dword [edx + 0xb8], ebx
jne case.0x40f8d4.500
mov ecx, dword [edi + 0x56f60]
call fcn.00444ca0
mov ebx, 1
jmp 0x40fb49
lea ecx, [edi + 0x56f74]
test edx, edx
je 0x40fab4
call fcn.004444d0
mov ebx, 1
jmp 0x40fb49
push dword [esi + 0x1c]
call fcn.00444530
test eax, eax
je 0x40fb29
mov ebx, 1
jmp 0x40fb49
push dword [esi + 0x1c]
lea ecx, [edi + 0x56f74]
call fcn.00444800
mov ebx, 1
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.00410f00
mov ebx, 1
jmp 0x40fb49
test edx, edx
jne case.0x40f8d4.500
mov esi, dword [esi + 0x1c]
mov ecx, 1
push dword [esi + 0x14]
mov edx, dword [esi + 0x18]
push dword [esi + 0x10]
call fcn.00407150
add esp, 8
cmp dword [esi + 0x1c], ebx
je case.0x40f8d4.500
mov eax, dword [esi + 0x18]
mov dword [edi + 0x4f1e4], eax
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.00410d50
test eax, eax
je 0x40fb49
mov ecx, dword [0x4f7d20]
mov dword [ecx + 0x4f20c], 2
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
mov ecx, dword [0x4f7f14]
push dword [eax + 0x10]
mov edx, dword [ecx]
push dword [eax + 0xc]
call dword [edx + 0x18]
mov ebx, 1
jmp 0x40fb49
add edi, 0x56f58
mov dword [ebp - 0x244], edi
test edx, edx
je 0x40fb97
mov ecx, edi
call fcn.004449c0
mov ebx, 1
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x238], eax
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je case.0x40f8d4.500
mov eax, dword [eax + 4]
inc ecx
test eax, eax
jne 0x40fbb3
cmp ecx, 1
jle case.0x40f8d4.500
mov esi, dword [edi]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ecx, esi
mov edi, eax
call fcn.0048cf80
cwde
mov dword [edi + 8], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40fbec
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x40fbe3
push dword [ebp - 0x238]
mov ecx, edi
mov dword [edx + 4], edi
call fcn.00443100
mov eax, dword [ebp - 0x238]
mov esi, dword [0x4f7d20]
cmp dword [eax + 0x28], ebx
je 0x40fc15
mov esi, dword [esi + 0x56f68]
jmp 0x40fc1b
mov esi, dword [esi + 0x56f6c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ecx, eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x23c], ecx
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 0x2713
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40fc4c
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x40fc43
mov eax, dword [ebp - 0x23c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x244]
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x24], ebx
jne 0x40fb29
mov ebx, 1
jmp 0x40fb49
push dword [esi + 0x1c]
lea ecx, [edi + 0x56f58]
call fcn.00444bb0
mov ebx, 1
jmp 0x40fb49
mov esi, dword [esi + 0x1c]
mov ecx, edi
push 1
push dword [edi + 0x200]
push dword [esi + 0x10]
call fcn.00411000
cmp dword [edi + 0x56fb4], 6
jne 0x40fcb5
mov eax, dword [edi + 0x208]
jmp 0x40fcc1
mov eax, dword [edi + 0x264]
mov eax, dword [eax + 0x260]
push 0
push eax
mov eax, dword [esi + 0xc]
mov ecx, edi
push eax
call fcn.00411000
mov ebx, 1
jmp 0x40fb49
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, eax
shr edx, 0x10
movzx ecx, ax
cmp edx, 5
ja 0x40fd41
mov eax, dword [edi + edx*4 + 0x224]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40fd0c
nop dword [eax]
cmp dword [esi + 8], ecx
je 0x40fd0e
mov esi, dword [esi + 4]
test esi, esi
jne 0x40fd00
xor esi, esi
test esi, esi
je 0x40fd41
push dword [ebx + 0x20]
lea eax, [ebx + 0x14]
mov ecx, edi
push eax
call fcn.00412d50
push eax
push dword [ebx + 0x10]
push dword [esi + 0x20]
call fcn.004132b0
mov ecx, dword [esi + 0x24]
mov edx, eax
cmp edx, ecx
jl 0x40fd3e
cmp edx, dword [esi + 0x28]
mov ecx, edx
cmovg ecx, dword [esi + 0x28]
mov dword [esi + 0x20], ecx
mov ebx, 1
jmp 0x40fb49
test edx, edx
jne case.0x40f8d4.500
mov eax, dword [esi + 0x1c]
mov dword [0x4f7d40], ebx
mov edx, dword [eax + 0xc]
mov eax, dword [0x4f7d20]
mov dword [0x4f7d44], edx
cmp dword [eax + 0x4f1d8], ebx
jne case.0x410710.1610
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [0x4f7d44], eax
jmp case.0x410710.1610
mov esi, dword [esi + 0x1c]
cmp word [esi + 0xc], 1
jne 0x40fdb0
push ecx
mov ecx, dword [ebp - 0x238]
push esi
call fcn.00469a20
mov eax, dword [0x4f7ef8]
mov ecx, dword [eax + 4]
mov eax, 0x1f5
jmp 0x410734
mov ecx, dword [edi + 0x56f84]
push dword [esi + 0x14]
mov ecx, dword [ecx + 8]
call fcn.00468f10
cmp word [esi + 0xe], 1
mov ebx, eax
jne 0x40fe15
mov eax, dword [esi + 0x68]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
cmp ecx, 5
ja 0x40fe15
mov eax, dword [edi + ecx*4 + 0x224]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40fdfc
nop dword [eax + eax]
cmp dword [ecx + 8], edx
je 0x40fdfe
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x40fdf0
xor ecx, ecx
test ecx, ecx
je 0x40fe15
mov edx, dword [ecx + 0x24]
cmp ebx, edx
jl 0x40fe12
cmp ebx, dword [ecx + 0x28]
mov edx, ebx
cmovg edx, dword [ecx + 0x28]
mov dword [ecx + 0x20], edx
mov ebx, 1
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x40fe42
mov eax, dword [0x4f7d20]
mov ebx, 1
mov dword [eax + 0xefc], 1
jmp 0x40fb49
cmp eax, 4
jne 0x40feca
mov eax, dword [0x4f7ef8]
lea ecx, [ebp - 0x238]
push ecx
push 0x400
push 1
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x244]
push ecx
push 0x4bb530
mov dword [ebp - 0x244], str.ScriptCall_DisableTurnSkip
mov esi, dword [eax]
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
js 0x40fed5
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push 0
push 0
push 0
push ecx
push 1
push 0x800
push 0x4bb530
push dword [ebp - 0x238]
mov dword [ebp - 0x214], ebx
push esi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
call dword [eax + 0x18]
mov ebx, 1
jmp 0x40fb49
mov eax, dword [0x4f7d20]
mov dword [eax + 0xefc], ebx
mov ebx, 1
jmp 0x40fb49
mov ecx, dword [esi + 0x1c]
test byte [ecx + 0xc], 1
je 0x40fef1
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x57204], eax
test byte [ecx + 0xc], 2
je 0x40ff00
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x57208], eax
test byte [ecx + 0xc], 4
je 0x40ff0f
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x5720c], eax
test byte [ecx + 0xc], 8
je 0x40ff1e
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x57210], eax
test byte [ecx + 0xc], 0x10
je 0x40ff2d
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x57214], eax
test byte [ecx + 0xc], 0x20
je 0x40ff3c
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x57218], eax
test byte [ecx + 0xc], 0x40
je 0x40ff4b
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x5721c], eax
mov ebx, 1
jmp 0x40fb49
mov ebx, dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x244], ebx
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40ff94
nop dword [eax]
mov eax, dword [eax + 4]
inc ecx
test eax, eax
jne 0x40ff70
test ecx, ecx
jle 0x40ff94
push eax
mov eax, dword [0x4f7f30]
lea ecx, [edi + 0x571c0]
push edx
push dword [eax + 0x444]
call fcn.0041a1d0
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov eax, esi
test eax, eax
je 0x40ffff
mov eax, dword [eax + 4]
inc ecx
test eax, eax
jne 0x40ffa5
test ecx, ecx
jle 0x40ffff
mov eax, dword [0x4f7f30]
mov ebx, dword [eax + 0x448]
nop dword [eax]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40fff2
mov ecx, dword [esi + 0xc]
nop dword [eax]
cmp dword [eax + 8], ecx
je 0x40ffde
mov eax, dword [eax + 4]
test eax, eax
jne 0x40ffd0
jmp 0x40fff2
push dword [eax + 0x20]
lea ecx, [edi + 0x571d0]
push dword [eax + 0x2c]
push dword [eax + 0x28]
call fcn.00406fc0
mov esi, dword [esi + 4]
test esi, esi
jne 0x40ffc0
mov ebx, dword [ebp - 0x244]
mov esi, dword [ebx + 0x14]
xor edx, edx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x410035
nop
mov eax, dword [eax + 4]
inc edx
test eax, eax
jne 0x410010
test edx, edx
jle 0x410035
mov eax, dword [0x4f7f30]
lea ecx, [edi + 0x571c0]
push 2
push esi
push dword [eax + 0x418]
call fcn.0041a1d0
mov ecx, dword [ebx + 0x18]
call fcn.00442d80
mov ecx, dword [0x4f7d20]
mov ebx, 1
mov dword [ecx + 0x57228], eax
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x410069
cmp dword [eax + 0x18], ebx
je case.0x40f8d4.500
mov dword [edi + 0xefc], ebx
push eax
call fcn.004112d0
jmp 0x40fb29
mov eax, dword [esi + 0x1c]
cmp dword [0x504f94], ebx
je case.0x40f8d4.500
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x41008f
mov ecx, dword [eax + 0x14]
jmp 0x4100cc
cmp ecx, 1
jne 0x410108
push dword [eax + 0x10]
mov ecx, edi
call fcn.00412d10
test eax, eax
je case.0x40f8d4.500
push dword [eax + 0x20]
push 0x4d0e40
push dword [eax + 0x18]
lea eax, [ebp - 0x20c]
push str._s__s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x20c]
call fcn.0040af60
mov eax, dword [0x5051ac]
mov eax, dword [eax + 4]
test eax, eax
je case.0x40f8d4.500
cmp dword [eax + 0x14], ebx
jne case.0x40f8d4.500
mov ecx, dword [0x4f7e48]
push 1
mov dword [eax + 0x14], 1
call fcn.0044b170
mov ebx, 1
jmp 0x40fb49
call fcn.0044b0d0
mov ebx, 1
jmp 0x40fb49
mov eax, dword [esi + 0x1c]
mov ecx, edi
test edx, edx
je 0x410132
push 1
push eax
call fcn.004110c0
mov ebx, 1
jmp 0x40fb49
push 0
push eax
call fcn.004110c0
test eax, eax
je 0x40fb29
mov ebx, 1
jmp 0x40fb49
lea eax, [ebp - 0x238]
push eax
push 0
mov esi, dword [esi + 0x1c]
mov ecx, edi
push esi
mov dword [ebp - 0x238], ebx
call fcn.0040d4b0
cmp dword [esi + 0x24], ebx
je case.0x40f8d4.500
test eax, eax
je case.0x40f8d4.500
cmp dword [ebp - 0x238], ebx
je case.0x40f8d4.500
cmp dword [ebp - 0x23c], ebx
je 0x40fb29
mov ebx, 1
jmp 0x40fb49
cmp ecx, 0x514
jg 0x410265
je case.0x410710.1601
lea eax, [ecx - 0x3e9]
cmp eax, 0xca
ja case.0x410710.1610
movzx eax, byte [eax + 0x410ab4]
jmp dword [eax*4 + 0x410aa0]
lea eax, [ebp - 0x238]
push eax
push 2
jmp 0x410155
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x238], ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4101fd
lea ecx, [ebp - 0x238]
push ecx
push 0
push eax
mov ecx, edi
call fcn.0040d4b0
neg eax
sbb eax, eax
inc eax
jmp 0x410223
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
push 1
push esi
call fcn.0040d4b0
test eax, eax
je 0x41021e
cmp dword [ebp - 0x238], ebx
je 0x41021e
xor eax, eax
jmp 0x410223
mov eax, 1
cmp dword [esi + 0x2c], ebx
je case.0x40f8d4.500
test eax, eax
jne case.0x40f8d4.500
cmp dword [ebp - 0x23c], ebx
jne case.0x40f8d4.500
cmp dword [esi + 0x30], ebx
jne 0x40fb29
lea ebx, [eax + 1]
jmp 0x40fb49
push dword [esi + 0x1c]
mov ecx, edi
call fcn.0040e120
mov ebx, 1
jmp 0x40fb49
cmp ecx, 0x640
jg 0x4106f8
je case.0x410710.1601
lea eax, [ecx - 0x515]
cmp eax, 0xcb
ja case.0x410710.1610
movzx eax, byte [eax + 0x410ba4]
jmp dword [eax*4 + 0x410b80]
mov edi, dword [esi + 0x1c]
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
jne 0x4102af
mov ebx, dword [0x4f7d20]
mov esi, dword [ebx + 0x4f174]
jmp 0x4102d0
cmp ecx, 0x270f
je case.0x40f8d4.500
call fcn.00442d80
mov ebx, dword [0x4f7d20]
mov ecx, ebx
push eax
call fcn.0040cd10
mov esi, eax
test esi, esi
je case.0x40f8d4.500
cmp dword [esi + 0xa8], 0
jne case.0x40f8d4.500
test byte [edi + 0x10], 1
je 0x4102f7
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 0x10]
test al, 6
je 0x41030c
push eax
push edi
push esi
push dword [ebx + 0x264]
call fcn.0041b8c0
test byte [edi + 0x10], 8
je 0x41031b
mov eax, dword [edi + 0x14]
mov dword [esi + 0xac], eax
test byte [edi + 0x10], 0x10
je 0x41032a
mov eax, dword [edi + 0x18]
mov dword [esi + 0xe4], eax
test byte [edi + 0x10], 0x20
je 0x410342
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], ecx
test byte [edi + 0x10], 0x80
je 0x410351
push 0
push edi
push esi
call fcn.0040e6a0
test dword [edi + 0x10], 0x100
je 0x410363
push 1
push edi
push esi
call fcn.0040e6a0
test byte [edi + 0x10], 0x40
je 0x410378
mov ecx, dword [edi + 0x40]
lea eax, [esi + 0x250]
push eax
call fcn.0048d040
test dword [edi + 0x10], 0x200
je case.0x40f8d4.500
mov ecx, dword [edi + 0x48]
add esi, 0x258
push esi
call fcn.0048d040
mov ecx, dword [edi + 0x4c]
lea eax, [esi + 4]
push eax
call fcn.0048d040
mov ecx, dword [edi + 0x50]
lea eax, [esi + 8]
push eax
call fcn.0048d040
mov ebx, 1
jmp 0x40fb49
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0x10], 0
je 0x410411
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x410400
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
jne 0x4103db
mov eax, dword [0x4f7d20]
mov eax, dword [eax + 0x4f174]
jmp 0x4103f8
cmp ecx, 0x270f
je case.0x40f8d4.500
call fcn.00442d80
mov ecx, dword [0x4f7d20]
push eax
call fcn.0040cd10
test eax, eax
je case.0x40f8d4.500
push ebx
push eax
call fcn.0040e6f0
mov ebx, 1
jmp 0x40fb49
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
test dl, 1
je 0x410438
mov eax, dword [edi + 0x1fc]
mov ecx, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x23c], ecx
test dl, 2
je 0x410451
mov eax, dword [edi + 0x28c]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x23c], ecx
test dl, 4
je 0x41046a
mov eax, dword [edi + 0x290]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x23c], ecx
xor edi, edi
test ecx, ecx
je case.0x40f8d4.500
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + edi*4 - 0x218]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4104a5
push ebx
push esi
call fcn.0040e6f0
mov esi, dword [esi + 4]
test esi, esi
jne 0x410491
mov ecx, dword [ebp - 0x23c]
inc edi
cmp edi, ecx
jl 0x410480
mov ebx, 1
jmp 0x40fb49
push dword [esi + 0x1c]
mov ecx, edi
call fcn.0040e7a0
mov ebx, 1
jmp 0x40fb49
mov ecx, dword [esi + 0x1c]
test byte [ecx + 0xc], 1
je 0x4104da
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x268], eax
test byte [ecx + 0xc], 2
je 0x4104e9
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x26c], eax
test byte [ecx + 0xc], 4
je 0x4104f8
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x270], eax
test byte [ecx + 0xc], 8
je 0x410507
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x274], eax
test byte [ecx + 0xc], 0x10
je 0x410516
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x278], eax
test byte [ecx + 0xc], 0x20
je 0x410525
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x27c], eax
test byte [ecx + 0xc], 0x40
je 0x410534
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x280], eax
test byte [ecx + 0xc], 0x80
je 0x410543
mov eax, dword [ecx + 0x2c]
mov dword [edi + 0x284], eax
test dword [ecx + 0xc], 0x100
je case.0x40f8d4.500
mov eax, dword [ecx + 0x30]
mov ebx, 1
mov dword [edi + 0x288], eax
jmp 0x40fb49
push dword [esi + 0x1c]
mov ecx, edi
call fcn.00411a80
mov ebx, 1
jmp 0x40fb49
mov esi, dword [esi + 0x1c]
test edx, edx
jne case.0x40f8d4.500
mov ecx, dword [0x4f7d20]
push edx
push edx
mov dword [edi + 0x2d0], ebx
mov dword [edi + 0x2d4], ebx
call fcn.00406e20
mov dword [edi + 0x2d8], ebx
mov dword [edi + 0x2dc], 1
mov eax, dword [esi + 0xc]
mov dword [edi + 0x2e0], eax
cmp dword [esi + 0x10], ebx
jne 0x40fb29
mov ebx, 1
jmp 0x40fb49
cmp dword [edi + 0x56fb4], 6
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x22c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x224], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x220], eax
jne 0x41062d
mov ecx, dword [0x4f7f30]
mov dword [ebp - 0x23c], 3
mov eax, dword [ecx + 0x70c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ecx + 0x710]
mov dword [ebp - 0x218], eax
mov eax, dword [ecx + 0x714]
mov dword [ebp - 0x214], eax
jmp 0x410672
mov ecx, dword [edi + 0x264]
mov dword [ebp - 0x23c], 4
mov eax, dword [ecx + 0x238]
mov dword [ebp - 0x21c], eax
mov eax, dword [ecx + 0x23c]
mov dword [ebp - 0x218], eax
mov eax, dword [ecx + 0x240]
mov dword [ebp - 0x214], eax
mov eax, dword [0x4f7f30]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x210], eax
xor ecx, ecx
mov dword [ebp - 0x238], ecx
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x22c]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4106df
mov ebx, dword [ebp + ecx*4 - 0x21c]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4106d2
mov ecx, dword [esi + 0xc]
cmp dword [eax + 8], ecx
je 0x4106b3
mov eax, dword [eax + 4]
test eax, eax
jne 0x4106a5
jmp 0x4106d2
cmp dword [esi + 0x10], 0
mov edx, dword [eax + 0x20]
mov ecx, dword [edi + 0x56f90]
jne 0x4106c6
push 1
jmp 0x4106c8
push 0
push 1
push ecx
push edx
push eax
call fcn.00414f60
mov esi, dword [esi + 4]
test esi, esi
jne 0x410698
mov ecx, dword [ebp - 0x238]
inc ecx
mov dword [ebp - 0x238], ecx
cmp ecx, dword [ebp - 0x23c]
jl 0x410680
mov ebx, 1
jmp 0x40fb49
lea eax, [ecx - 0x641]
cmp eax, 0xc7
ja case.0x410710.1610
movzx eax, byte [eax + 0x410c80]
jmp dword [eax*4 + 0x410c70]
push ecx
push dword [esi + 0x1c]
mov ecx, dword [ebp - 0x238]
call fcn.00469a20
mov eax, dword [0x4f7ef8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x240]
push eax
push 0xa
call fcn.00468610
mov ebx, eax
test ebx, ebx
jne 0x40fb49
jmp 0x40fb29
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov ebx, 1
cmp dword [eax + 0xc], ecx
mov eax, dword [0x4f7d20]
sete cl
lea ecx, [ecx*2 - 1]
mov dword [eax + 0xc], ecx
jmp 0x40fb49
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0x10], 0
je 0x4107cf
mov eax, dword [ebx + 0xd0]
test eax, eax
jne 0x4107bc
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
jne 0x410797
mov eax, dword [0x4f7d20]
mov eax, dword [eax + 0x4f174]
jmp 0x4107b4
cmp ecx, 0x270f
je case.0x40f8d4.500
call fcn.00442d80
mov ecx, dword [0x4f7d20]
push eax
call fcn.0040cd10
test eax, eax
je case.0x40f8d4.500
push ebx
push eax
mov ecx, edi
call fcn.00411bc0
mov ebx, 1
jmp 0x40fb49
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x238], ecx
test dl, 1
je 0x4107f6
mov eax, dword [edi + 0x1fc]
mov ecx, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x238], ecx
test dl, 2
je 0x41080f
mov eax, dword [edi + 0x28c]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x238], ecx
test dl, 4
je 0x410828
mov eax, dword [edi + 0x290]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x238], ecx
xor eax, eax
mov dword [ebp - 0x23c], eax
test ecx, ecx
je case.0x40f8d4.500
nop dword [eax + eax]
mov eax, dword [ebp + eax*4 - 0x218]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x410867
push ebx
push esi
mov ecx, edi
call fcn.00411bc0
mov esi, dword [esi + 4]
test esi, esi
jne 0x410851
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x23c], eax
cmp eax, ecx
jl 0x410840
mov ebx, 1
jmp 0x40fb49