Function at 0x40fde0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x4fb0d8]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, 0xc
push edi
mov edi, ecx
mov dword [ebp - 0x230], eax
xor ebx, ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x238], ecx
mov edx, dword [edi + 0xefc]
mov dword [ebp - 0x234], edx
test ecx, ecx
je 0x40fe2e
cmp ecx, 2
je 0x40fe2e
cmp ecx, 3
jne 0x40fe42
push esi
mov ecx, edi
call fcn.0040fc00
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
cmp ecx, 0x12c
jg 0x41005f
je 0x410042
cmp ecx, 0xcc
ja case.0x410deb.1610
movzx eax, byte [ecx + 0x410f78]
jmp dword [eax*4 + 0x410f58]
push 0
push dword [esi + 0x1c]
mov esi, dword [ebp - 0x230]
mov ecx, esi
call fcn.0046b9e0
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [0x4fb0d8]
mov ecx, dword [eax + 4]
xor eax, eax
jmp 0x410e0f
push dword [esi + 0x1c]
call fcn.00402a50
mov ebx, 1
jmp 0x4102fd
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0xc], ebx
lea eax, [esi + 0xc]
je 0x40feb6
cmp dword [esi + 0x18], ebx
jmp 0x40febc
cmp dword [edi + 0x4f190], ebx
je 0x40fee3
test edx, edx
jne 0x40fee3
push edx
push ecx
push eax
lea ecx, [edi + 0x4f178]
call fcn.00446910
cmp dword [esi + 0x20], ebx
jne 0x4102dd
mov ebx, 1
jmp 0x4102fd
push 1
push ecx
push eax
lea ecx, [edi + 0x4f178]
call fcn.00446910
mov ebx, 1
jmp 0x4102fd
mov esi, dword [esi + 0x1c]
lea ecx, [edi + 0x4f218]
test edx, edx
je 0x40ff1b
push 1
push esi
call fcn.004463a0
mov ebx, 1
jmp 0x4102fd
push 0
push esi
call fcn.004463a0
cmp dword [esi + 0x14], ebx
je case.0x410089.500
cmp dword [esi + 0x18], ebx
jne 0x4102dd
mov ebx, 1
jmp 0x4102fd
mov esi, dword [esi + 0x1c]
mov ecx, dword [edi + 0x4f1c8]
mov dword [edi + 0x4f1b8], ebx
lea ebx, [edi + 0x4f1cc]
test ecx, ecx
je 0x40ff6d
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.0x410089.500
mov ecx, dword [0x4faee4]
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 [0x4fafb0]
mov dword [edi + 0x4f1c8], ecx
mov eax, dword [ecx]
push dword [0x4fafa8]
call dword [eax + 0xc]
mov ebx, 1
jmp 0x4102fd
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 0x410027
cmp eax, 1
jne 0x41001d
mov ecx, edi
mov dword [edi + 0x4f184], ebx
call fcn.00412090
mov ebx, 1
jmp 0x4102fd
mov dword [edi + 0x4f1a0], 2
mov ecx, edi
mov dword [edi + 0x4f184], 0xff
call fcn.00412090
mov ebx, 1
jmp 0x4102fd
mov eax, dword [esi + 0x1c]
mov ecx, edi
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00411570
mov ebx, 1
jmp 0x4102fd
cmp ecx, 0x3e8
jg 0x41086a
je 0x41081d
lea eax, [ecx - 0x12d]
cmp eax, 0xd1
ja case.0x410deb.1610
movzx eax, byte [eax + 0x4110a0]
jmp dword [eax*4 + 0x411048]
lea eax, [edi + 0x56f60]
mov dword [ebp - 0x230], eax
test edx, edx
je 0x4100b1
mov ecx, eax
call fcn.00445de0
mov ebx, 1
jmp 0x4102fd
mov ebx, dword [eax]
mov esi, dword [esi + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4100cf
mov eax, dword [esi + 0xc]
cmp dword [ecx + 0xc], eax
je 0x410117
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4100c3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov ecx, ebx
mov edi, eax
call fcn.00491020
cwde
mov dword [edi + 8], eax
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4100f9
nop dword [eax]
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4100f0
push esi
mov ecx, edi
mov dword [edx + 4], edi
call fcn.00444a70
cmp dword [esi + 0x20], 0
mov eax, dword [0x4faeb4]
je 0x410127
mov esi, dword [eax + 0x56f68]
jmp 0x41012d
push esi
call fcn.00444a70
mov ebx, 1
jmp 0x4102fd
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 0x410159
nop
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x410150
mov eax, dword [ebp - 0x230]
mov dword [edx + 4], ebx
mov ebx, 1
mov dword [eax + 4], edi
jmp 0x4102fd
mov eax, dword [edi + 0x56f60]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax + 4]
cmp dword [ecx + 0x14], 0
mov ebx, dword [eax + 4]
je 0x4101e0
test ebx, ebx
je case.0x410089.500
nop dword [eax]
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0xb4], 0
jne 0x4101cf
mov ecx, dword [edi + 0x56f60]
push ebx
call fcn.00490f60
mov esi, dword [0x4faeb4]
mov ebx, eax
push dword [esi + 0x56f68]
call fcn.00445f60
push dword [esi + 0x56f6c]
call fcn.00445f60
jmp 0x4101d2
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x410190
mov ebx, 1
jmp 0x4102fd
test ebx, ebx
je case.0x410089.500
mov eax, dword [ecx + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 0xc], eax
je 0x410206
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4101f0
mov ebx, 1
jmp 0x4102fd
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0xb4], 0
jne case.0x410089.500
mov ecx, dword [edi + 0x56f60]
push ebx
call fcn.00490f60
mov esi, dword [0x4faeb4]
push dword [esi + 0x56f68]
call fcn.00445f60
push dword [esi + 0x56f6c]
call fcn.00445f60
mov ebx, 1
jmp 0x4102fd
lea ecx, [edi + 0x56f74]
test edx, edx
je 0x410268
call fcn.00445980
mov ebx, 1
jmp 0x4102fd
push dword [esi + 0x1c]
call fcn.004459e0
test eax, eax
je 0x4102dd
mov ebx, 1
jmp 0x4102fd
push dword [esi + 0x1c]
lea ecx, [edi + 0x56f74]
call fcn.00445cb0
mov ebx, 1
jmp 0x4102fd
mov eax, dword [esi + 0x1c]
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.004115d0
mov ebx, 1
jmp 0x4102fd
test edx, edx
jne case.0x410089.500
mov esi, dword [esi + 0x1c]
mov ecx, 1
push dword [esi + 0x14]
mov edx, dword [esi + 0x18]
push dword [esi + 0x10]
call fcn.00407510
add esp, 8
cmp dword [esi + 0x1c], ebx
je case.0x410089.500
mov eax, dword [esi + 0x18]
mov dword [edi + 0x4f1e4], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00411420
test eax, eax
je 0x4102fd
mov ecx, dword [0x4faeb4]
mov dword [ecx + 0x4f20c], 2
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
mov ecx, dword [0x4fb0f4]
push dword [eax + 0x10]
mov edx, dword [ecx]
push dword [eax + 0xc]
call dword [edx + 0x18]
mov ebx, 1
jmp 0x4102fd
add edi, 0x56f58
mov dword [ebp - 0x23c], edi
test edx, edx
je 0x41034b
mov ecx, edi
call fcn.00445de0
mov ebx, 1
jmp 0x4102fd
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je case.0x410089.500
mov eax, dword [eax + 4]
inc ecx
test eax, eax
jne 0x410367
cmp ecx, 1
jle case.0x410089.500
mov esi, dword [edi]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ecx, esi
mov edi, eax
call fcn.00491020
cwde
mov dword [edi + 8], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4103a0
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x410397
push dword [ebp - 0x230]
mov ecx, edi
mov dword [edx + 4], edi
call fcn.004443f0
mov eax, dword [ebp - 0x230]
mov esi, dword [0x4faeb4]
cmp dword [eax + 0x28], ebx
je 0x4103c9
mov esi, dword [esi + 0x56f68]
jmp 0x4103cf
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 - 0x234], 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 0x410400
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4103f7
mov eax, dword [ebp - 0x234]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x23c]
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0x24], ebx
jne 0x4102dd
mov ebx, 1
jmp 0x4102fd
push dword [esi + 0x1c]
lea ecx, [edi + 0x56f58]
call fcn.00445e90
mov ebx, 1
jmp 0x4102fd
mov esi, dword [esi + 0x1c]
mov ecx, edi
push 1
push dword [edi + 0x200]
push dword [esi + 0x10]
call fcn.004116d0
cmp dword [edi + 0x56fb4], 6
jne 0x410469
mov eax, dword [edi + 0x208]
jmp 0x410475
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.004116d0
mov ebx, 1
jmp 0x4102fd
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, eax
shr edx, 0x10
movzx ecx, ax
cmp edx, 5
ja 0x4104f6
mov eax, dword [edi + edx*4 + 0x224]
test eax, eax
je 0x4104c1
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4104c1
cmp dword [esi + 8], ecx
je 0x4104c3
mov esi, dword [esi + 4]
test esi, esi
jne 0x4104b5
xor esi, esi
test esi, esi
je 0x4104f6
push dword [ebx + 0x20]
lea eax, [ebx + 0x14]
mov ecx, edi
push eax
call fcn.004135d0
push eax
push dword [ebx + 0x10]
push dword [esi + 0x20]
call fcn.00413bf0
mov ecx, dword [esi + 0x24]
mov edx, eax
cmp edx, ecx
jl 0x4104f3
cmp edx, dword [esi + 0x28]
mov ecx, edx
cmovg ecx, dword [esi + 0x28]
mov dword [esi + 0x20], ecx
mov ebx, 1
jmp 0x4102fd
test edx, edx
jne case.0x410089.500
mov eax, dword [esi + 0x1c]
mov dword [0x4faed8], ebx
mov edx, dword [eax + 0xc]
mov eax, dword [0x4faeb4]
mov dword [0x4faedc], edx
cmp dword [eax + 0x4f1d8], ebx
jne case.0x410deb.1610
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [0x4faedc], eax
jmp case.0x410deb.1610
mov esi, dword [esi + 0x1c]
cmp word [esi + 0xc], 1
jne 0x410565
push ecx
mov ecx, dword [ebp - 0x230]
push esi
call fcn.0046b9e0
mov eax, dword [0x4fb0d8]
mov ecx, dword [eax + 4]
mov eax, 0x1f5
jmp 0x410e0f
mov ecx, dword [edi + 0x56f84]
push dword [esi + 0x14]
mov ecx, dword [ecx + 8]
call fcn.0046aed0
cmp word [esi + 0xe], 1
mov ebx, eax
jne 0x4105cc
mov eax, dword [esi + 0xd0]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
cmp ecx, 5
ja 0x4105cc
mov eax, dword [edi + ecx*4 + 0x224]
test eax, eax
je 0x4105b3
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4105b3
cmp dword [ecx + 8], edx
je 0x4105b5
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4105a7
xor ecx, ecx
test ecx, ecx
je 0x4105cc
mov edx, dword [ecx + 0x24]
cmp ebx, edx
jl 0x4105c9
cmp ebx, dword [ecx + 0x28]
mov edx, ebx
cmovg edx, dword [ecx + 0x28]
mov dword [ecx + 0x20], edx
mov ebx, 1
jmp 0x4102fd
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4105f9
mov eax, dword [0x4faeb4]
mov ebx, 1
mov dword [eax + 0xefc], 1
jmp 0x4102fd
cmp eax, 4
jne 0x410681
mov eax, dword [0x4fb0d8]
lea ecx, [ebp - 0x230]
push ecx
push 0x400
push 1
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x23c]
push ecx
push 0x4bf530
mov dword [ebp - 0x23c], str.ScriptCall_DisableTurnSkip
mov esi, dword [eax]
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
js 0x41068c
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push 0
push 0
push 0
push ecx
push 1
push 0x800
push 0x4bf530
push dword [ebp - 0x230]
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 0x4102fd
mov eax, dword [0x4faeb4]
mov dword [eax + 0xefc], ebx
mov ebx, 1
jmp 0x4102fd
mov ecx, dword [esi + 0x1c]
test byte [ecx + 0xc], 1
je 0x4106a8
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x57204], eax
test byte [ecx + 0xc], 2
je 0x4106b7
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x57208], eax
test byte [ecx + 0xc], 4
je 0x4106c6
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x5720c], eax
test byte [ecx + 0xc], 8
je 0x4106d5
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x57210], eax
test byte [ecx + 0xc], 0x10
je 0x4106e4
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x57214], eax
test byte [ecx + 0xc], 0x20
je 0x4106f3
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x57218], eax
test byte [ecx + 0xc], 0x40
je 0x410702
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x5721c], eax
mov ebx, 1
jmp 0x4102fd
push dword [esi + 0x1c]
lea ecx, [edi + 0x571c0]
call fcn.0041aab0
mov ebx, 1
jmp 0x4102fd
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x41073a
cmp dword [eax + 0x18], ebx
je case.0x410089.500
mov dword [edi + 0xefc], ebx
push eax
call fcn.004119a0
jmp 0x4102dd
mov eax, dword [esi + 0x1c]
cmp dword [0x508184], ebx
je case.0x410089.500
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x410760
mov ecx, dword [eax + 0x14]
jmp 0x41079d
cmp ecx, 1
jne 0x4107d9
push dword [eax + 0x10]
mov ecx, edi
call fcn.00413530
test eax, eax
je case.0x410089.500
push dword [eax + 0x20]
push 0x4d4c04
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.0040b7e0
mov eax, dword [0x50839c]
mov eax, dword [eax + 4]
test eax, eax
je case.0x410089.500
cmp dword [eax + 0x14], ebx
jne case.0x410089.500
mov ecx, dword [0x4fb024]
push 1
mov dword [eax + 0x14], 1
call fcn.0044c240
mov ebx, 1
jmp 0x4102fd
call fcn.0044c1a0
mov ebx, 1
jmp 0x4102fd
mov eax, dword [esi + 0x1c]
mov ecx, edi
test edx, edx
je 0x410803
push 1
push eax
call fcn.00411790
mov ebx, 1
jmp 0x4102fd
push 0
push eax
call fcn.00411790
test eax, eax
je 0x4102dd
mov ebx, 1
jmp 0x4102fd
lea eax, [ebp - 0x230]
push eax
push 0
mov esi, dword [esi + 0x1c]
mov ecx, edi
push esi
mov dword [ebp - 0x230], ebx
call fcn.0040dd70
cmp dword [esi + 0x24], ebx
je case.0x410089.500
test eax, eax
je case.0x410089.500
cmp dword [ebp - 0x230], ebx
je case.0x410089.500
cmp dword [ebp - 0x234], ebx
je 0x4102dd
mov ebx, 1
jmp 0x4102fd
cmp ecx, 0x514
jg 0x410936
je case.0x410deb.1601
lea eax, [ecx - 0x3e9]
cmp eax, 0xca
ja case.0x410deb.1610
movzx eax, byte [eax + 0x411188]
jmp dword [eax*4 + 0x411174]
lea eax, [ebp - 0x230]
push eax
push 2
jmp 0x410826
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x230], ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4108ce
lea ecx, [ebp - 0x230]
push ecx
push 0
push eax
mov ecx, edi
call fcn.0040dd70
neg eax
sbb eax, eax
inc eax
jmp 0x4108f4
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
push 1
push esi
call fcn.0040dd70
test eax, eax
je 0x4108ef
cmp dword [ebp - 0x230], ebx
je 0x4108ef
xor eax, eax
jmp 0x4108f4
mov eax, 1
cmp dword [esi + 0x2c], ebx
je case.0x410089.500
test eax, eax
jne case.0x410089.500
cmp dword [ebp - 0x234], ebx
jne case.0x410089.500
cmp dword [esi + 0x30], ebx
jne 0x4102dd
lea ebx, [eax + 1]
jmp 0x4102fd
push dword [esi + 0x1c]
mov ecx, edi
call fcn.0040ea20
mov ebx, 1
jmp 0x4102fd
cmp ecx, 0x640
jg 0x410dd3
je case.0x410deb.1601
lea eax, [ecx - 0x515]
cmp eax, 0xcb
ja case.0x410deb.1610
movzx eax, byte [eax + 0x411278]
jmp dword [eax*4 + 0x411254]
mov edi, dword [esi + 0x1c]
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
jne 0x410980
mov ebx, dword [0x4faeb4]
mov esi, dword [ebx + 0x4f174]
jmp 0x4109a1
cmp ecx, 0x270f
je case.0x410089.500
call fcn.00444060
mov ebx, dword [0x4faeb4]
mov ecx, ebx
push eax
call fcn.0040d5e0
mov esi, eax
test esi, esi
je case.0x410089.500
cmp dword [esi + 0xa8], 0
jne case.0x410089.500
test byte [edi + 0x10], 1
je 0x4109c8
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 0x4109dd
push eax
push edi
push esi
push dword [ebx + 0x264]
call fcn.0041c3f0
test byte [edi + 0x10], 8
je 0x4109ec
mov eax, dword [edi + 0x14]
mov dword [esi + 0xac], eax
test byte [edi + 0x10], 0x10
je 0x4109fb
mov eax, dword [edi + 0x18]
mov dword [esi + 0xe4], eax
test byte [edi + 0x10], 0x20
je 0x410a13
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 0x410a22
push 0
push edi
push esi
call fcn.0040ef80
test dword [edi + 0x10], 0x100
je 0x410a34
push 1
push edi
push esi
call fcn.0040ef80
test byte [edi + 0x10], 0x40
je 0x410a49
mov ecx, dword [edi + 0x40]
lea eax, [esi + 0x250]
push eax
call fcn.00491100
test dword [edi + 0x10], 0x200
je case.0x410089.500
mov ecx, dword [edi + 0x48]
add esi, 0x258
push esi
call fcn.00491100
mov ecx, dword [edi + 0x4c]
lea eax, [esi + 4]
push eax
call fcn.00491100
mov ecx, dword [edi + 0x50]
lea eax, [esi + 8]
push eax
call fcn.00491100
mov ebx, 1
jmp 0x4102fd
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0x10], 0
je 0x410ae2
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x410ad1
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
jne 0x410aac
mov eax, dword [0x4faeb4]
mov eax, dword [eax + 0x4f174]
jmp 0x410ac9
cmp ecx, 0x270f
je case.0x410089.500
call fcn.00444060
mov ecx, dword [0x4faeb4]
push eax
call fcn.0040d5e0
test eax, eax
je case.0x410089.500
push ebx
push eax
call fcn.0040efd0
mov ebx, 1
jmp 0x4102fd
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x234], ecx
test dl, 1
je 0x410b09
mov eax, dword [edi + 0x1fc]
mov ecx, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x234], ecx
test dl, 2
je 0x410b22
mov eax, dword [edi + 0x28c]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x234], ecx
test dl, 4
je 0x410b3b
mov eax, dword [edi + 0x290]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x234], ecx
xor edi, edi
test ecx, ecx
je case.0x410089.500
nop word [eax + eax]
mov eax, dword [ebp + edi*4 - 0x218]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x410b75
push ebx
push esi
call fcn.0040efd0
mov esi, dword [esi + 4]
test esi, esi
jne 0x410b61
mov ecx, dword [ebp - 0x234]
inc edi
cmp edi, ecx
jl 0x410b50
mov ebx, 1
jmp 0x4102fd
push dword [esi + 0x1c]
mov ecx, edi
call fcn.0040f080
mov ebx, 1
jmp 0x4102fd
mov ecx, dword [esi + 0x1c]
test byte [ecx + 0xc], 1
je 0x410baa
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x268], eax
test byte [ecx + 0xc], 2
je 0x410bb9
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x26c], eax
test byte [ecx + 0xc], 4
je 0x410bc8
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x270], eax
test byte [ecx + 0xc], 8
je 0x410bd7
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x274], eax
test byte [ecx + 0xc], 0x10
je 0x410be6
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x278], eax
test byte [ecx + 0xc], 0x20
je 0x410bf5
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x27c], eax
test byte [ecx + 0xc], 0x40
je 0x410c04
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x280], eax
test byte [ecx + 0xc], 0x80
je 0x410c13
mov eax, dword [ecx + 0x2c]
mov dword [edi + 0x284], eax
test dword [ecx + 0xc], 0x100
je case.0x410089.500
mov eax, dword [ecx + 0x30]
mov ebx, 1
mov dword [edi + 0x288], eax
jmp 0x4102fd
push dword [esi + 0x1c]
mov ecx, edi
call fcn.00412140
mov ebx, 1
jmp 0x4102fd
mov esi, dword [esi + 0x1c]
test edx, edx
jne case.0x410089.500
mov ecx, dword [0x4faeb4]
push edx
push edx
mov dword [edi + 0x2d0], ebx
mov dword [edi + 0x2d4], ebx
call fcn.00407240
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 0x4102dd
mov ebx, 1
jmp 0x4102fd
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 0x410cfd
mov ecx, dword [0x4fb114]
mov dword [ebp - 0x234], 3
mov eax, dword [ecx + 0x734]
mov dword [ebp - 0x21c], eax
mov eax, dword [ecx + 0x738]
mov dword [ebp - 0x218], eax
mov eax, dword [ecx + 0x73c]
mov dword [ebp - 0x214], eax
jmp 0x410d42
mov ecx, dword [edi + 0x264]
mov dword [ebp - 0x234], 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 [0x4fb114]
mov eax, dword [eax + 0xa8]
mov dword [ebp - 0x210], eax
xor ecx, ecx
mov dword [ebp - 0x230], 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 0x410dba
mov ebx, dword [ebp + ecx*4 - 0x21c]
test ebx, ebx
je 0x410dad
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x410dad
mov ecx, dword [esi + 0xc]
nop dword [eax]
cmp dword [eax + 8], ecx
je 0x410d8e
mov eax, dword [eax + 4]
test eax, eax
jne 0x410d80
jmp 0x410dad
cmp dword [esi + 0x10], 0
mov edx, dword [eax + 0x20]
mov ecx, dword [edi + 0x56f90]
jne 0x410da1
push 1
jmp 0x410da3
push 0
push 1
push ecx
push edx
push eax
call fcn.00415dd0
mov esi, dword [esi + 4]
test esi, esi
jne 0x410d68
mov ecx, dword [ebp - 0x230]
inc ecx
mov dword [ebp - 0x230], ecx
cmp ecx, dword [ebp - 0x234]
jl 0x410d50
mov ebx, 1
jmp 0x4102fd
lea eax, [ecx - 0x641]
cmp eax, 0xc7
ja case.0x410deb.1610
movzx eax, byte [eax + 0x411354]
jmp dword [eax*4 + 0x411344]
push ecx
push dword [esi + 0x1c]
mov ecx, dword [ebp - 0x230]
call fcn.0046b9e0
mov eax, dword [0x4fb0d8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x238]
push eax
push 0xa
call fcn.0046a3e0
mov ebx, eax
test ebx, ebx
jne 0x4102fd
jmp 0x4102dd
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov ebx, 1
cmp dword [eax + 0xc], ecx
mov eax, dword [0x4faeb4]
sete cl
lea ecx, [ecx*2 - 1]
mov dword [eax + 0xc], ecx
jmp 0x4102fd
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0x10], 0
je 0x410eaa
mov eax, dword [ebx + 0xd0]
test eax, eax
jne 0x410e97
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
jne 0x410e72
mov eax, dword [0x4faeb4]
mov eax, dword [eax + 0x4f174]
jmp 0x410e8f
cmp ecx, 0x270f
je case.0x410089.500
call fcn.00444060
mov ecx, dword [0x4faeb4]
push eax
call fcn.0040d5e0
test eax, eax
je case.0x410089.500
push ebx
push eax
mov ecx, edi
call fcn.00412280
mov ebx, 1
jmp 0x4102fd
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x230], ecx
test dl, 1
je 0x410ed1
mov eax, dword [edi + 0x1fc]
mov ecx, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x230], ecx
test dl, 2
je 0x410eea
mov eax, dword [edi + 0x28c]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x230], ecx
test dl, 4
je 0x410f03
mov eax, dword [edi + 0x290]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x230], ecx
xor eax, eax
mov dword [ebp - 0x234], eax
test ecx, ecx
je case.0x410089.500
mov eax, dword [ebp + eax*4 - 0x218]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x410f3a
push ebx
push esi
mov ecx, edi
call fcn.00412280
mov esi, dword [esi + 4]
test esi, esi
jne 0x410f24
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
cmp eax, ecx
jl 0x410f13
mov ebx, 1
jmp 0x4102fd