Function at 0x40fe20
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4f4008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x4fc0c0]
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 0x40fe6e
cmp ecx, 2
je 0x40fe6e
cmp ecx, 3
jne 0x40fe82
push esi
mov ecx, edi
call fcn.0040fc40
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
cmp ecx, 0x12c
jg 0x41009f
je 0x410082
cmp ecx, 0xcc
ja case.0x410e2b.1610
movzx eax, byte [ecx + 0x410fb8]
jmp dword [eax*4 + 0x410f98]
push 0
push dword [esi + 0x1c]
mov esi, dword [ebp - 0x230]
mov ecx, esi
call fcn.0046c130
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [0x4fc0c0]
mov ecx, dword [eax + 4]
xor eax, eax
jmp 0x410e4f
push dword [esi + 0x1c]
call fcn.00402a40
mov ebx, 1
jmp 0x41033d
mov esi, dword [esi + 0x1c]
cmp dword [esi + 0xc], ebx
lea eax, [esi + 0xc]
je 0x40fef6
cmp dword [esi + 0x18], ebx
jmp 0x40fefc
cmp dword [edi + 0x4f190], ebx
je 0x40ff23
test edx, edx
jne 0x40ff23
push edx
push ecx
push eax
lea ecx, [edi + 0x4f178]
call fcn.00447080
cmp dword [esi + 0x20], ebx
jne 0x41031d
mov ebx, 1
jmp 0x41033d
push 1
push ecx
push eax
lea ecx, [edi + 0x4f178]
call fcn.00447080
mov ebx, 1
jmp 0x41033d
mov esi, dword [esi + 0x1c]
lea ecx, [edi + 0x4f218]
test edx, edx
je 0x40ff5b
push 1
push esi
call fcn.00446b10
mov ebx, 1
jmp 0x41033d
push 0
push esi
call fcn.00446b10
cmp dword [esi + 0x14], ebx
je case.0x4100c9.500
cmp dword [esi + 0x18], ebx
jne 0x41031d
mov ebx, 1
jmp 0x41033d
mov esi, dword [esi + 0x1c]
mov ecx, dword [edi + 0x4f1c8]
mov dword [edi + 0x4f1b8], ebx
lea ebx, [edi + 0x4f1cc]
test ecx, ecx
je 0x40ffad
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.0x4100c9.500
mov ecx, dword [0x4fbe84]
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 [0x4fbf94]
mov dword [edi + 0x4f1c8], ecx
mov eax, dword [ecx]
push dword [0x4fbf8c]
call dword [eax + 0xc]
mov ebx, 1
jmp 0x41033d
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 0x410067
cmp eax, 1
jne 0x41005d
mov ecx, edi
mov dword [edi + 0x4f184], ebx
call fcn.00412130
mov ebx, 1
jmp 0x41033d
mov dword [edi + 0x4f1a0], 2
mov ecx, edi
mov dword [edi + 0x4f184], 0xff
call fcn.00412130
mov ebx, 1
jmp 0x41033d
mov eax, dword [esi + 0x1c]
mov ecx, edi
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004115b0
mov ebx, 1
jmp 0x41033d
cmp ecx, 0x3e8
jg 0x4108aa
je 0x41085d
lea eax, [ecx - 0x12d]
cmp eax, 0xd1
ja case.0x410e2b.1610
movzx eax, byte [eax + 0x4110e0]
jmp dword [eax*4 + 0x411088]
lea eax, [edi + 0x56f60]
mov dword [ebp - 0x230], eax
test edx, edx
je 0x4100f1
mov ecx, eax
call fcn.00446550
mov ebx, 1
jmp 0x41033d
mov ebx, dword [eax]
mov esi, dword [esi + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41010f
mov eax, dword [esi + 0xc]
cmp dword [ecx + 0xc], eax
je 0x410157
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x410103
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov ecx, ebx
mov edi, eax
call fcn.00491510
cwde
mov dword [edi + 8], eax
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x410139
nop dword [eax]
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x410130
push esi
mov ecx, edi
mov dword [edx + 4], edi
call fcn.004451f0
cmp dword [esi + 0x20], 0
mov eax, dword [0x4fbe54]
je 0x410167
mov esi, dword [eax + 0x56f68]
jmp 0x41016d
push esi
call fcn.004451f0
mov ebx, 1
jmp 0x41033d
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 0x410199
nop
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x410190
mov eax, dword [ebp - 0x230]
mov dword [edx + 4], ebx
mov ebx, 1
mov dword [eax + 4], edi
jmp 0x41033d
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 0x410220
test ebx, ebx
je case.0x4100c9.500
nop dword [eax]
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0xb4], 0
jne 0x41020f
mov ecx, dword [edi + 0x56f60]
push ebx
call fcn.00491420
mov esi, dword [0x4fbe54]
mov ebx, eax
push dword [esi + 0x56f68]
call fcn.004466d0
push dword [esi + 0x56f6c]
call fcn.004466d0
jmp 0x410212
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4101d0
mov ebx, 1
jmp 0x41033d
test ebx, ebx
je case.0x4100c9.500
mov eax, dword [ecx + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 0xc], eax
je 0x410246
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x410230
mov ebx, 1
jmp 0x41033d
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0xb4], 0
jne case.0x4100c9.500
mov ecx, dword [edi + 0x56f60]
push ebx
call fcn.00491420
mov esi, dword [0x4fbe54]
push dword [esi + 0x56f68]
call fcn.004466d0
push dword [esi + 0x56f6c]
call fcn.004466d0
mov ebx, 1
jmp 0x41033d
lea ecx, [edi + 0x56f74]
test edx, edx
je 0x4102a8
call fcn.004460f0
mov ebx, 1
jmp 0x41033d
push dword [esi + 0x1c]
call fcn.00446150
test eax, eax
je 0x41031d
mov ebx, 1
jmp 0x41033d
push dword [esi + 0x1c]
lea ecx, [edi + 0x56f74]
call fcn.00446420
mov ebx, 1
jmp 0x41033d
mov eax, dword [esi + 0x1c]
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.00411610
mov ebx, 1
jmp 0x41033d
test edx, edx
jne case.0x4100c9.500
mov esi, dword [esi + 0x1c]
mov ecx, 1
push dword [esi + 0x14]
mov edx, dword [esi + 0x18]
push dword [esi + 0x10]
call fcn.004075c0
add esp, 8
cmp dword [esi + 0x1c], ebx
je case.0x4100c9.500
mov eax, dword [esi + 0x18]
mov dword [edi + 0x4f1e4], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00411460
test eax, eax
je 0x41033d
mov ecx, dword [0x4fbe54]
mov dword [ecx + 0x4f20c], 2
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
mov ecx, dword [0x4fc0dc]
push dword [eax + 0x10]
mov edx, dword [ecx]
push dword [eax + 0xc]
call dword [edx + 0x1c]
mov ebx, 1
jmp 0x41033d
add edi, 0x56f58
mov dword [ebp - 0x23c], edi
test edx, edx
je 0x41038b
mov ecx, edi
call fcn.00446550
mov ebx, 1
jmp 0x41033d
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.0x4100c9.500
mov eax, dword [eax + 4]
inc ecx
test eax, eax
jne 0x4103a7
cmp ecx, 1
jle case.0x4100c9.500
mov esi, dword [edi]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ecx, esi
mov edi, eax
call fcn.00491510
cwde
mov dword [edi + 8], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4103e0
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4103d7
push dword [ebp - 0x230]
mov ecx, edi
mov dword [edx + 4], edi
call fcn.00444b60
mov eax, dword [ebp - 0x230]
mov esi, dword [0x4fbe54]
cmp dword [eax + 0x28], ebx
je 0x410409
mov esi, dword [esi + 0x56f68]
jmp 0x41040f
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 0x410440
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x410437
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 0x41031d
mov ebx, 1
jmp 0x41033d
push dword [esi + 0x1c]
lea ecx, [edi + 0x56f58]
call fcn.00446600
mov ebx, 1
jmp 0x41033d
mov esi, dword [esi + 0x1c]
mov ecx, edi
push 1
push dword [edi + 0x200]
push dword [esi + 0x10]
call fcn.00411710
cmp dword [edi + 0x56fb4], 6
jne 0x4104a9
mov eax, dword [edi + 0x208]
jmp 0x4104b5
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.00411710
mov ebx, 1
jmp 0x41033d
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, eax
shr edx, 0x10
movzx ecx, ax
cmp edx, 5
ja 0x410536
mov eax, dword [edi + edx*4 + 0x224]
test eax, eax
je 0x410501
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x410501
cmp dword [esi + 8], ecx
je 0x410503
mov esi, dword [esi + 4]
test esi, esi
jne 0x4104f5
xor esi, esi
test esi, esi
je 0x410536
push dword [ebx + 0x20]
lea eax, [ebx + 0x14]
mov ecx, edi
push eax
call fcn.004137a0
push eax
push dword [ebx + 0x10]
push dword [esi + 0x20]
call fcn.00413de0
mov ecx, dword [esi + 0x24]
mov edx, eax
cmp edx, ecx
jl 0x410533
cmp edx, dword [esi + 0x28]
mov ecx, edx
cmovg ecx, dword [esi + 0x28]
mov dword [esi + 0x20], ecx
mov ebx, 1
jmp 0x41033d
test edx, edx
jne case.0x4100c9.500
mov eax, dword [esi + 0x1c]
mov dword [0x4fbe78], ebx
mov edx, dword [eax + 0xc]
mov eax, dword [0x4fbe54]
mov dword [0x4fbe7c], edx
cmp dword [eax + 0x4f1d8], ebx
jne case.0x410e2b.1610
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [0x4fbe7c], eax
jmp case.0x410e2b.1610
mov esi, dword [esi + 0x1c]
cmp word [esi + 0xc], 1
jne 0x4105a5
push ecx
mov ecx, dword [ebp - 0x230]
push esi
call fcn.0046c130
mov eax, dword [0x4fc0c0]
mov ecx, dword [eax + 4]
mov eax, 0x1f5
jmp 0x410e4f
mov ecx, dword [edi + 0x56f84]
push dword [esi + 0x14]
mov ecx, dword [ecx + 8]
call fcn.0046b620
cmp word [esi + 0xe], 1
mov ebx, eax
jne 0x41060c
mov eax, dword [esi + 0xd0]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
cmp ecx, 5
ja 0x41060c
mov eax, dword [edi + ecx*4 + 0x224]
test eax, eax
je 0x4105f3
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4105f3
cmp dword [ecx + 8], edx
je 0x4105f5
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4105e7
xor ecx, ecx
test ecx, ecx
je 0x41060c
mov edx, dword [ecx + 0x24]
cmp ebx, edx
jl 0x410609
cmp ebx, dword [ecx + 0x28]
mov edx, ebx
cmovg edx, dword [ecx + 0x28]
mov dword [ecx + 0x20], edx
mov ebx, 1
jmp 0x41033d
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x410639
mov eax, dword [0x4fbe54]
mov ebx, 1
mov dword [eax + 0xefc], 1
jmp 0x41033d
cmp eax, 4
jne 0x4106c1
mov eax, dword [0x4fc0c0]
lea ecx, [ebp - 0x230]
push ecx
push 0x400
push 1
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x23c]
push ecx
push 0x4bf520
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 0x4106cc
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push 0
push 0
push 0
push ecx
push 1
push 0x800
push 0x4bf520
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 0x41033d
mov eax, dword [0x4fbe54]
mov dword [eax + 0xefc], ebx
mov ebx, 1
jmp 0x41033d
mov ecx, dword [esi + 0x1c]
test byte [ecx + 0xc], 1
je 0x4106e8
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x57204], eax
test byte [ecx + 0xc], 2
je 0x4106f7
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x57208], eax
test byte [ecx + 0xc], 4
je 0x410706
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x5720c], eax
test byte [ecx + 0xc], 8
je 0x410715
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x57210], eax
test byte [ecx + 0xc], 0x10
je 0x410724
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x57214], eax
test byte [ecx + 0xc], 0x20
je 0x410733
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x57218], eax
test byte [ecx + 0xc], 0x40
je 0x410742
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x5721c], eax
mov ebx, 1
jmp 0x41033d
push dword [esi + 0x1c]
lea ecx, [edi + 0x571c0]
call fcn.0041ab60
mov ebx, 1
jmp 0x41033d
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x41077a
cmp dword [eax + 0x18], ebx
je case.0x4100c9.500
mov dword [edi + 0xefc], ebx
push eax
call fcn.004119e0
jmp 0x41031d
mov eax, dword [esi + 0x1c]
cmp dword [0x509164], ebx
je case.0x4100c9.500
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4107a0
mov ecx, dword [eax + 0x14]
jmp 0x4107dd
cmp ecx, 1
jne 0x410819
push dword [eax + 0x10]
mov ecx, edi
call fcn.00413700
test eax, eax
je case.0x4100c9.500
push dword [eax + 0x20]
push 0x4d4f00
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.0040b800
mov eax, dword [0x50937c]
mov eax, dword [eax + 4]
test eax, eax
je case.0x4100c9.500
cmp dword [eax + 0x14], ebx
jne case.0x4100c9.500
mov ecx, dword [0x4fc008]
push 1
mov dword [eax + 0x14], 1
call fcn.0044ca10
mov ebx, 1
jmp 0x41033d
call fcn.0044c970
mov ebx, 1
jmp 0x41033d
mov eax, dword [esi + 0x1c]
mov ecx, edi
test edx, edx
je 0x410843
push 1
push eax
call fcn.004117d0
mov ebx, 1
jmp 0x41033d
push 0
push eax
call fcn.004117d0
test eax, eax
je 0x41031d
mov ebx, 1
jmp 0x41033d
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.0040dce0
cmp dword [esi + 0x24], ebx
je case.0x4100c9.500
test eax, eax
je case.0x4100c9.500
cmp dword [ebp - 0x230], ebx
je case.0x4100c9.500
cmp dword [ebp - 0x234], ebx
je 0x41031d
mov ebx, 1
jmp 0x41033d
cmp ecx, 0x514
jg 0x410976
je case.0x410e2b.1601
lea eax, [ecx - 0x3e9]
cmp eax, 0xca
ja case.0x410e2b.1610
movzx eax, byte [eax + 0x4111c8]
jmp dword [eax*4 + 0x4111b4]
lea eax, [ebp - 0x230]
push eax
push 2
jmp 0x410866
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x230], ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x41090e
lea ecx, [ebp - 0x230]
push ecx
push 0
push eax
mov ecx, edi
call fcn.0040dce0
neg eax
sbb eax, eax
inc eax
jmp 0x410934
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
push 1
push esi
call fcn.0040dce0
test eax, eax
je 0x41092f
cmp dword [ebp - 0x230], ebx
je 0x41092f
xor eax, eax
jmp 0x410934
mov eax, 1
cmp dword [esi + 0x2c], ebx
je case.0x4100c9.500
test eax, eax
jne case.0x4100c9.500
cmp dword [ebp - 0x234], ebx
jne case.0x4100c9.500
cmp dword [esi + 0x30], ebx
jne 0x41031d
lea ebx, [eax + 1]
jmp 0x41033d
push dword [esi + 0x1c]
mov ecx, edi
call fcn.0040ea00
mov ebx, 1
jmp 0x41033d
cmp ecx, 0x640
jg 0x410e13
je case.0x410e2b.1601
lea eax, [ecx - 0x515]
cmp eax, 0xcb
ja case.0x410e2b.1610
movzx eax, byte [eax + 0x4112b8]
jmp dword [eax*4 + 0x411294]
mov edi, dword [esi + 0x1c]
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
jne 0x4109c0
mov ebx, dword [0x4fbe54]
mov esi, dword [ebx + 0x4f174]
jmp 0x4109e1
cmp ecx, 0x270f
je case.0x4100c9.500
call fcn.004447d0
mov ebx, dword [0x4fbe54]
mov ecx, ebx
push eax
call fcn.0040d510
mov esi, eax
test esi, esi
je case.0x4100c9.500
cmp dword [esi + 0xa8], 0
jne case.0x4100c9.500
test byte [edi + 0x10], 1
je 0x410a08
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 0x410a1d
push eax
push edi
push esi
push dword [ebx + 0x264]
call fcn.0041c500
test byte [edi + 0x10], 8
je 0x410a2c
mov eax, dword [edi + 0x14]
mov dword [esi + 0xac], eax
test byte [edi + 0x10], 0x10
je 0x410a3b
mov eax, dword [edi + 0x18]
mov dword [esi + 0xe4], eax
test byte [edi + 0x10], 0x20
je 0x410a53
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 0x410a62
push 0
push edi
push esi
call fcn.0040ef90
test dword [edi + 0x10], 0x100
je 0x410a74
push 1
push edi
push esi
call fcn.0040ef90
test byte [edi + 0x10], 0x40
je 0x410a89
mov ecx, dword [edi + 0x40]
lea eax, [esi + 0x250]
push eax
call fcn.004915f0
test dword [edi + 0x10], 0x200
je case.0x4100c9.500
mov ecx, dword [edi + 0x48]
add esi, 0x258
push esi
call fcn.004915f0
mov ecx, dword [edi + 0x4c]
lea eax, [esi + 4]
push eax
call fcn.004915f0
mov ecx, dword [edi + 0x50]
lea eax, [esi + 8]
push eax
call fcn.004915f0
mov ebx, 1
jmp 0x41033d
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0x10], 0
je 0x410b22
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x410b11
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
jne 0x410aec
mov eax, dword [0x4fbe54]
mov eax, dword [eax + 0x4f174]
jmp 0x410b09
cmp ecx, 0x270f
je case.0x4100c9.500
call fcn.004447d0
mov ecx, dword [0x4fbe54]
push eax
call fcn.0040d510
test eax, eax
je case.0x4100c9.500
push ebx
push eax
call fcn.0040efe0
mov ebx, 1
jmp 0x41033d
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x234], ecx
test dl, 1
je 0x410b49
mov eax, dword [edi + 0x1fc]
mov ecx, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x234], ecx
test dl, 2
je 0x410b62
mov eax, dword [edi + 0x28c]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x234], ecx
test dl, 4
je 0x410b7b
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.0x4100c9.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 0x410bb5
push ebx
push esi
call fcn.0040efe0
mov esi, dword [esi + 4]
test esi, esi
jne 0x410ba1
mov ecx, dword [ebp - 0x234]
inc edi
cmp edi, ecx
jl 0x410b90
mov ebx, 1
jmp 0x41033d
push dword [esi + 0x1c]
mov ecx, edi
call fcn.0040f0c0
mov ebx, 1
jmp 0x41033d
mov ecx, dword [esi + 0x1c]
test byte [ecx + 0xc], 1
je 0x410bea
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x268], eax
test byte [ecx + 0xc], 2
je 0x410bf9
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x26c], eax
test byte [ecx + 0xc], 4
je 0x410c08
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x270], eax
test byte [ecx + 0xc], 8
je 0x410c17
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x274], eax
test byte [ecx + 0xc], 0x10
je 0x410c26
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x278], eax
test byte [ecx + 0xc], 0x20
je 0x410c35
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x27c], eax
test byte [ecx + 0xc], 0x40
je 0x410c44
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x280], eax
test byte [ecx + 0xc], 0x80
je 0x410c53
mov eax, dword [ecx + 0x2c]
mov dword [edi + 0x284], eax
test dword [ecx + 0xc], 0x100
je case.0x4100c9.500
mov eax, dword [ecx + 0x30]
mov ebx, 1
mov dword [edi + 0x288], eax
jmp 0x41033d
push dword [esi + 0x1c]
mov ecx, edi
call fcn.004121e0
mov ebx, 1
jmp 0x41033d
mov esi, dword [esi + 0x1c]
test edx, edx
jne case.0x4100c9.500
mov ecx, dword [0x4fbe54]
push edx
push edx
mov dword [edi + 0x2d0], ebx
mov dword [edi + 0x2d4], ebx
call fcn.004072f0
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 0x41031d
mov ebx, 1
jmp 0x41033d
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 0x410d3d
mov ecx, dword [0x4fc0fc]
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 0x410d82
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 [0x4fc0fc]
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 0x410dfa
mov ebx, dword [ebp + ecx*4 - 0x21c]
test ebx, ebx
je 0x410ded
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x410ded
mov ecx, dword [esi + 0xc]
nop dword [eax]
cmp dword [eax + 8], ecx
je 0x410dce
mov eax, dword [eax + 4]
test eax, eax
jne 0x410dc0
jmp 0x410ded
cmp dword [esi + 0x10], 0
mov edx, dword [eax + 0x20]
mov ecx, dword [edi + 0x56f90]
jne 0x410de1
push 1
jmp 0x410de3
push 0
push 1
push ecx
push edx
push eax
call fcn.00415e20
mov esi, dword [esi + 4]
test esi, esi
jne 0x410da8
mov ecx, dword [ebp - 0x230]
inc ecx
mov dword [ebp - 0x230], ecx
cmp ecx, dword [ebp - 0x234]
jl 0x410d90
mov ebx, 1
jmp 0x41033d
lea eax, [ecx - 0x641]
cmp eax, 0xc7
ja case.0x410e2b.1610
movzx eax, byte [eax + 0x411394]
jmp dword [eax*4 + 0x411384]
push ecx
push dword [esi + 0x1c]
mov ecx, dword [ebp - 0x230]
call fcn.0046c130
mov eax, dword [0x4fc0c0]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x238]
push eax
push 0xa
call fcn.0046ab20
mov ebx, eax
test ebx, ebx
jne 0x41033d
jmp 0x41031d
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov ebx, 1
cmp dword [eax + 0xc], ecx
mov eax, dword [0x4fbe54]
sete cl
lea ecx, [ecx*2 - 1]
mov dword [eax + 0xc], ecx
jmp 0x41033d
mov ebx, dword [esi + 0x1c]
cmp dword [ebx + 0x10], 0
je 0x410eea
mov eax, dword [ebx + 0xd0]
test eax, eax
jne 0x410ed7
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
jne 0x410eb2
mov eax, dword [0x4fbe54]
mov eax, dword [eax + 0x4f174]
jmp 0x410ecf
cmp ecx, 0x270f
je case.0x4100c9.500
call fcn.004447d0
mov ecx, dword [0x4fbe54]
push eax
call fcn.0040d510
test eax, eax
je case.0x4100c9.500
push ebx
push eax
mov ecx, edi
call fcn.00412320
mov ebx, 1
jmp 0x41033d
mov edx, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x230], ecx
test dl, 1
je 0x410f11
mov eax, dword [edi + 0x1fc]
mov ecx, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x230], ecx
test dl, 2
je 0x410f2a
mov eax, dword [edi + 0x28c]
mov dword [ebp + ecx*4 - 0x218], eax
inc ecx
mov dword [ebp - 0x230], ecx
test dl, 4
je 0x410f43
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.0x4100c9.500
mov eax, dword [ebp + eax*4 - 0x218]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x410f7a
push ebx
push esi
mov ecx, edi
call fcn.00412320
mov esi, dword [esi + 4]
test esi, esi
jne 0x410f64
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
cmp eax, ecx
jl 0x410f53
mov ebx, 1
jmp 0x41033d