Function at 0x407670
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebx, 1
push edi
mov eax, dword [esi + 8]
mov edi, ecx
dec eax
mov byte [esp + 0x13], bl
cmp eax, 0x18
ja case.0x407693.9
jmp dword [eax*4 + 0x4082c8]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
push ebx
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [0x4954e0]
push edx
push eax
call fcn.00428380
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x38]
push ebx
push ecx
mov ecx, dword [esi + 0x34]
push edx
mov edx, dword [esi + 0x30]
push eax
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esi + 0x10]
lea eax, [esi + 0x14]
push 0
push eax
push ecx
mov ecx, dword [0x4954e0]
push edx
call fcn.00428590
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [edi + 0x9c4]
mov edi, dword [edi + 0x9c8]
cmp eax, edi
je case.0x407693.9
mov ecx, dword [esi + 0x10]
mov edx, dword [eax]
cmp dword [edx + 8], ecx
je 0x407733
add eax, 4
cmp eax, edi
jne 0x407717
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x18]
push ecx
mov ecx, dword [eax]
call fcn.00420420
mov esi, dword [esi + 0x18]
xor eax, eax
pop edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [edi + 0x9c4]
mov ecx, dword [edi + 0x9c8]
cmp eax, ecx
je case.0x407693.9
mov edx, dword [esi + 0x10]
mov ebx, dword [eax]
cmp dword [ebx + 8], edx
je 0x40778a
add eax, 4
cmp eax, ecx
jne 0x40776e
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ebx, dword [eax]
xor ebp, ebp
cmp ebx, ebp
je case.0x407693.9
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4077ab
mov edx, dword [esi + 0x1c]
sub edx, eax
sar edx, 2
mov dword [esp + 0x28], edx
jne 0x4077d4
mov eax, dword [0x49581c]
cmp eax, ebp
je case.0x407693.9
mov ecx, dword [eax]
push str.Error__no_path_in_UsePath_event_n
push eax
call dword [ecx + 0x34]
mov al, byte [esp + 0x1b]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [edi + 0xc48]
mov edi, dword [edi + 0xc4c]
mov esi, dword [esi + 0x18]
cmp eax, edi
je 0x407802
mov ecx, dword [esi]
mov edx, dword [eax]
cmp dword [edx + 0x10], ecx
je 0x4077f9
add eax, 4
cmp eax, edi
jne 0x4077e9
jmp 0x407802
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
cmp ecx, ebp
jne 0x40782e
mov eax, dword [0x49581c]
cmp eax, ebp
je case.0x407693.9
mov edx, dword [esi]
mov ecx, dword [eax]
push edx
push str.Warning:_Path__d_not_found_n
push eax
call dword [ecx + 0x34]
mov al, byte [esp + 0x1f]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.0043b2c0
mov esi, eax
cmp esi, ebp
je case.0x407693.9
push esi
mov ecx, ebx
call fcn.00420420
mov al, byte [esp + 0x13]
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x10]
mov ecx, dword [0x4954d8]
push 0
push eax
call fcn.00402f50
test eax, eax
mov dword [esp + 0x28], eax
je case.0x407693.9
mov ecx, dword [esi + 0x14]
push ebx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
push 2
mov byte [edx + 0x11], 0
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [edi + 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
add ecx, 0xfffffff5
cmp ecx, 0xb
ja case.0x4078a7.12
jmp dword [ecx*4 + 0x40832c]
fld dword [edi + 0xc18]
jmp 0x407907
fld dword [edi + 0xc20]
jmp 0x407907
fld dword [edi + 0xc24]
jmp 0x407907
fld dword [edi + 0xc28]
jmp 0x407907
fld dword [edi + 0xc2c]
fstp dword [eax + 0xb4]
mov ecx, dword [esp + 0x28]
push str.rotate
call fcn.00402710
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
call fcn.004027a0
jmp 0x40790d
fld dword [edi + 0xc30]
jmp 0x407907
fld dword [edi + 0xc1c]
fstp dword [eax + 0xb4]
push 0
push 0xc47a0000
push 0
lea ecx, [esp + 0x24]
call fcn.00431170
mov eax, dword [esp + 0x28]
mov byte [eax + 0x85], bl
mov ecx, dword [esp + 0x18]
add eax, 0x14
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
call fcn.00402520
mov ecx, dword [esp + 0x28]
call fcn.00402590
mov ecx, dword [esp + 0x28]
call fcn.004024a0
mov eax, dword [edi + 0x9c8]
add edi, 0x9c0
lea edx, [esp + 0x28]
mov ecx, edi
push edx
push ebx
push eax
call fcn.00423620
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x10]
push 0
push ecx
mov ecx, dword [0x4954d8]
call fcn.00402f50
test eax, eax
mov dword [esp + 0x28], eax
je case.0x407693.9
mov edx, dword [esi + 0x14]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x28]
mov byte [eax + 0x11], 0
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
je 0x4079cc
cmp eax, 0xcc
je 0x4079cc
mov ecx, dword [esi + 0x30]
mov edx, dword [edi + 0x10]
push ebx
push 4
push ecx
push edx
jmp 0x4079d7
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x10]
push ebx
push 8
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00402650
mov eax, dword [esp + 0x28]
fld dword [esi + 0x24]
fadd dword [eax + 0x20]
mov byte [eax + 0x85], bl
add esi, 0x18
fstp dword [eax + 0x20]
mov eax, dword [esp + 0x28]
fld dword [esi + 0x10]
fadd dword [eax + 0x24]
mov byte [eax + 0x85], bl
fstp dword [eax + 0x24]
mov eax, dword [esp + 0x28]
fld dword [esi + 0x14]
fadd dword [eax + 0x28]
mov byte [eax + 0x85], bl
fstp dword [eax + 0x28]
mov eax, dword [esp + 0x28]
mov byte [eax + 0x85], bl
mov edx, dword [esi]
add eax, 0x14
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x28]
call fcn.00402520
mov ecx, dword [esp + 0x28]
call fcn.00402590
mov ecx, dword [esp + 0x28]
call fcn.004024a0
mov edx, dword [edi + 0x9b8]
lea ecx, [edi + 0x9b0]
lea eax, [esp + 0x28]
push eax
push ebx
push edx
call fcn.00423620
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ebp, dword [edi + 0x9b4]
mov edi, dword [edi + 0x9b8]
cmp ebp, edi
je case.0x407693.9
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp]
cmp eax, dword [ecx + 8]
je 0x407aae
add ebp, 4
cmp ebp, edi
jne 0x407a91
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [ebp]
lea edx, [esi + 0x14]
push edx
call fcn.00402710
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp]
push ebx
push eax
push ebx
call fcn.004027a0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ebp, dword [edi + 0x9b4]
mov eax, dword [edi + 0x9b8]
cmp ebp, eax
je case.0x407693.9
mov esi, dword [esi + 0x10]
mov ecx, dword [ebp]
cmp esi, dword [ecx + 8]
je 0x407b0a
add ebp, 4
cmp ebp, eax
jne 0x407aed
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp]
push edx
call fcn.004026c0
mov ecx, dword [ebp]
test ecx, ecx
je 0x407b29
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebp], 0
mov ecx, dword [edi + 0x9b8]
lea eax, [ebp + 4]
cmp eax, ecx
je 0x407b44
sub ebp, eax
mov edx, dword [eax]
mov dword [eax + ebp], edx
add eax, 4
cmp eax, ecx
jne 0x407b38
mov eax, dword [edi + 0x9b8]
add eax, 0xfffffffc
mov dword [edi + 0x9b8], eax
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [edi + 0xc4c]
add edi, 0xc44
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
push eax
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x20], esi
call fcn.00423620
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [0x4954e4]
push 0
call fcn.0040cf10
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [0x4954e4]
push edx
push eax
call fcn.0040ce70
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x10]
cmp eax, 0xbcd
jg 0x407ca8
je 0x407c88
sub eax, 0xb
cmp eax, 0xb
ja case.0x407693.9
jmp dword [eax*4 + 0x40835c]
mov ecx, dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc18], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc1c], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc20], eax
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc24], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc28], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc2c], eax
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc30], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0x14]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc34], edx
pop edi
fld dword [esi + 0x14]
pop esi
pop ebp
fstp dword [0x48704c]
pop ebx
add esp, 0x14
ret 4
cmp eax, 0xbce
jne case.0x407693.9
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc38], eax
mov al, byte [esp + 0x13]
fld dword [esi + 0x14]
pop edi
pop esi
fstp dword [0x487050]
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ebx, dword [edi + 0x20]
xor eax, eax
test ebx, ebx
jle 0x407d35
mov ebp, dword [edi + 0x1c]
mov edx, ebp
mov ecx, dword [edx]
test ecx, ecx
je 0x407cf2
mov ecx, dword [ecx + 0xb0]
cmp ecx, dword [esi + 0x10]
je 0x407cfc
inc eax
add edx, 4
cmp eax, ebx
jl 0x407ce1
jmp 0x407d35
mov ecx, dword [esi + 8]
sub ecx, 0xe
je 0x407d28
dec ecx
je 0x407d19
dec ecx
jne 0x407d35
mov edx, dword [ebp + eax*4]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x170], ecx
jmp 0x407d35
mov edx, dword [ebp + eax*4]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x16c], ecx
jmp 0x407d35
mov edx, dword [ebp + eax*4]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x168], ecx
cmp eax, dword [edi + 0x20]
jl case.0x407693.9
mov eax, dword [0x49581c]
test eax, eax
je case.0x407693.9
mov ecx, dword [esi + 0x10]
mov edx, dword [eax]
push ecx
push str.Warning:_No_Player_Found:__d_n
push eax
call dword [edx + 0x34]
mov al, byte [esp + 0x1f]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0x10]
add edi, 0x9e8
push 0
push edx
mov ecx, edi
call fcn.00423e10
mov eax, dword [esi + 0x20]
mov ecx, edi
push eax
call fcn.004243c0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00423f20
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
lea ecx, [edi + 0x9e8]
call fcn.00423ec0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov esi, dword [esi + 0x10]
mov al, byte [esp + 0x13]
mov dword [edi + 0xc3c], esi
mov ecx, dword [0x4954e8]
pop edi
mov dword [ecx + 0xb770], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x1c]
dec eax
je 0x407e66
dec eax
je 0x407e3f
dec eax
jne 0x407e8f
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [0x4954e8]
lea ebx, [esi + 0x10]
push edx
push eax
push ebx
call fcn.00410f20
mov ecx, dword [0x4954e8]
push 0
push ebx
push 0xa
mov esi, eax
call fcn.00410560
push 0x3f800000
push 0x3f800000
push ebx
mov ecx, edi
call fcn.00408610
jmp 0x407e87
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x28]
push eax
lea ebx, [esi + 0x10]
push ecx
mov ecx, dword [0x4954e8]
push edx
push ebx
call fcn.00410f20
mov esi, eax
jmp 0x407e2b
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [0x4954e8]
push edx
add esi, 0x10
push eax
push esi
call fcn.00410e50
mov esi, eax
test esi, esi
jne case.0x407693.9
mov ecx, dword [0x49581c]
test ecx, ecx
je case.0x407693.9
mov edx, dword [ecx]
push str.No_effect_or_failed_in_creating_effect_n
call dword [edx + 0x30]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x34]
push eax
push ecx
push ebx
lea eax, [esi + 0x28]
push edx
lea ecx, [esi + 0x1c]
push eax
add esi, 0x10
push ecx
mov ecx, dword [0x4954e8]
push esi
call fcn.004110e0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x34]
push edx
push eax
push ebx
lea edx, [esi + 0x28]
push ecx
mov ecx, dword [0x4954e8]
lea eax, [esi + 0x1c]
push edx
add esi, 0x10
push eax
push esi
call fcn.00411310
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [edi + 0x175c]
mov ecx, dword [edi + 0x1760]
sub ecx, eax
mov byte [esp + 0x13], 0
sar ecx, 2
cmp ecx, ebx
mov ebp, eax
jae 0x408024
mov edx, dword [edi + 0x1758]
test edx, edx
je 0x407f5a
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, ebx
ja 0x407f5c
mov ecx, ebx
test edx, edx
jne 0x407f64
xor eax, eax
jmp 0x407f69
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x28], eax
jge 0x407f75
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0046b5e0
mov ecx, dword [edi + 0x1758]
add esp, 4
cmp ecx, ebp
mov ebx, eax
je 0x407fa3
test eax, eax
je 0x407f99
mov edx, dword [ecx]
mov dword [eax], edx
add ecx, 4
add eax, 4
cmp ecx, ebp
jne 0x407f91
test eax, eax
je 0x407fa9
mov dword [eax], esi
mov edx, dword [edi + 0x175c]
lea ecx, [eax + 4]
cmp ebp, edx
je 0x407fd1
mov esi, ecx
sub esi, eax
lea ebp, [esi + ebp - 4]
test ecx, ecx
je 0x407fc7
mov eax, dword [ebp]
mov dword [ecx], eax
add ebp, 4
add ecx, 4
cmp ebp, edx
jne 0x407fbe
mov ecx, dword [edi + 0x1758]
push ecx
call fcn.0046b450
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x1758]
add esp, 4
lea eax, [ebx + edx*4]
test ecx, ecx
mov dword [edi + 0x1760], eax
jne 0x407ffb
xor eax, eax
jmp 0x408006
mov eax, dword [edi + 0x175c]
sub eax, ecx
sar eax, 2
lea ecx, [ebx + eax*4 + 4]
mov al, byte [esp + 0x13]
mov dword [edi + 0x175c], ecx
mov dword [edi + 0x1758], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, eax
sub edx, ebp
sar edx, 2
cmp edx, ebx
jae 0x4080a1
cmp ebp, eax
lea ecx, [ebp + 4]
je 0x408050
lea edx, [ecx - 4]
test ecx, ecx
je 0x408046
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, 1
add edx, 4
add ecx, 4
cmp edx, eax
jne 0x408039
mov ecx, dword [edi + 0x175c]
mov eax, ebx
mov edx, ecx
sub edx, ebp
sar edx, 2
sub eax, edx
je 0x40806f
test ecx, ecx
je 0x408069
mov dword [ecx], esi
add ecx, 4
dec eax
jne 0x408063
mov ecx, dword [edi + 0x175c]
mov eax, ebp
cmp ebp, ecx
je 0x408084
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jne 0x40807b
mov eax, dword [edi + 0x175c]
add eax, 4
mov dword [edi + 0x175c], eax
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
lea ecx, [eax - 4]
mov edx, eax
cmp ecx, eax
je 0x4080bc
test edx, edx
je 0x4080b2
mov ebx, dword [ecx]
mov dword [edx], ebx
add ecx, 4
add edx, 4
cmp ecx, eax
jne 0x4080aa
mov ecx, dword [edi + 0x175c]
lea eax, [ecx - 4]
cmp ebp, eax
je 0x4080d8
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebp
mov dword [ecx], edx
jne 0x4080c9
lea ecx, [ebp + 4]
mov eax, ebp
cmp ebp, ecx
je 0x4080ea
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jne 0x4080e1
mov eax, dword [edi + 0x175c]
add eax, 4
mov dword [edi + 0x175c], eax
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [edi + 0x176c]
mov ecx, dword [edi + 0x1770]
sub ecx, eax
mov byte [esp + 0x13], 0
sar ecx, 2
cmp ecx, ebx
mov ebp, eax
jae 0x408206
mov edx, dword [edi + 0x1768]
test edx, edx
je 0x40813c
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, ebx
ja 0x40813e
mov ecx, ebx
test edx, edx
jne 0x408146
xor eax, eax
jmp 0x40814b
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x28], eax
jge 0x408157
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0046b5e0
mov ecx, dword [edi + 0x1768]
add esp, 4
cmp ecx, ebp
mov ebx, eax
je 0x408185
test eax, eax
je 0x40817b
mov edx, dword [ecx]
mov dword [eax], edx
add ecx, 4
add eax, 4
cmp ecx, ebp
jne 0x408173
test eax, eax
je 0x40818b
mov dword [eax], esi
mov edx, dword [edi + 0x176c]
lea ecx, [eax + 4]
cmp ebp, edx
je 0x4081b3
mov esi, ecx
sub esi, eax
lea ebp, [esi + ebp - 4]
test ecx, ecx
je 0x4081a9
mov eax, dword [ebp]
mov dword [ecx], eax
add ebp, 4
add ecx, 4
cmp ebp, edx
jne 0x4081a0
mov ecx, dword [edi + 0x1768]
push ecx
call fcn.0046b450
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x1768]
add esp, 4
lea eax, [ebx + edx*4]
test ecx, ecx
mov dword [edi + 0x1770], eax
jne 0x4081dd
xor eax, eax
jmp 0x4081e8
mov eax, dword [edi + 0x176c]
sub eax, ecx
sar eax, 2
lea ecx, [ebx + eax*4 + 4]
mov al, byte [esp + 0x13]
mov dword [edi + 0x176c], ecx
mov dword [edi + 0x1768], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, eax
sub edx, ebp
sar edx, 2
cmp edx, ebx
jae 0x408268
cmp ebp, eax
lea ecx, [ebp + 4]
je 0x408232
lea edx, [ecx - 4]
test ecx, ecx
je 0x408228
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, 1
add edx, 4
add ecx, 4
cmp edx, eax
jne 0x40821b
mov ecx, dword [edi + 0x176c]
mov eax, ebx
mov edx, ecx
sub edx, ebp
sar edx, 2
sub eax, edx
je 0x408251
test ecx, ecx
je 0x40824b
mov dword [ecx], esi
add ecx, 4
dec eax
jne 0x408245
mov ecx, dword [edi + 0x176c]
mov eax, ebp
cmp ebp, ecx
je 0x4082b1
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jne 0x40825d
jmp 0x4082b1
lea ecx, [eax - 4]
mov edx, eax
cmp ecx, eax
je 0x408283
test edx, edx
je 0x408279
mov ebx, dword [ecx]
mov dword [edx], ebx
add ecx, 4
add edx, 4
cmp ecx, eax
jne 0x408271
mov ecx, dword [edi + 0x176c]
lea eax, [ecx - 4]
cmp ebp, eax
je 0x40829f
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebp
mov dword [ecx], edx
jne 0x408290
lea ecx, [ebp + 4]
mov eax, ebp
cmp ebp, ecx
je 0x4082b1
mov dword [eax], esi
add eax, 4
cmp eax, ecx
jne 0x4082a8
add dword [edi + 0x176c], 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4