Function at 0x4be420
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
push 0x60
lea ecx, [ebp - 0xd0]
push 0
push ecx
mov dword [ebp - 8], eax
call fcn.00534b40
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
add esp, 0xc
mov dword [ebp - 0xd0], ebx
cmp ax, 0x40
jle 0x4be472
push 0x40
push str.at_most__d_tables_in_a_join
mov esi, ebx
call fcn.0047fe90
add esp, 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
and ecx, 0x40
mov dword [ebp - 0x20], ecx
je 0x4be486
mov dword [ebp - 0xc], 1
jmp 0x4be48a
cwde
mov dword [ebp - 0xc], eax
mov esi, dword [ebx]
push edi
mov edi, dword [ebp - 0xc]
imul edi, edi, 0x58
add edi, 0x3f
and edi, 0xfffffff8
lea ecx, [edi + 0x26c]
mov dword [ebp - 0x18], esi
call fcn.00475e70
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4be4c2
lea eax, [edi + 0x26c]
push eax
push 0
push esi
call fcn.00534b40
add esp, 0xc
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + 0x38], 0
je 0x4be4db
mov eax, esi
call fcn.0046a740
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], edx
mov dword [esi], ebx
call fcn.00479860
mov cx, word [ebp + 0x1c]
mov dword [esi + 0x18], eax
add edi, esi
mov dword [ebp - 0xcc], edi
mov dword [esi + 0x20], edi
mov word [esi + 0xa], cx
fld qword [ebx + 0x1b8]
lea eax, [esi + 0x38]
fstp qword [esi + 0x28]
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add edx, 0x168
test byte [eax + 0x34], 0x20
mov dword [ebp - 0x3c], edx
je 0x4be53b
mov dword [ebp + 0x18], 0
push 0x104
mov edi, edx
push 0
push edi
call fcn.00534b40
mov eax, dword [ebp - 0xcc]
xor ecx, ecx
lea edx, [eax + 0x28]
mov dword [eax + 0x20], edx
mov dx, word [ebp + 0x1c]
add esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], 8
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov word [eax + 0x16], dx
cmp dword [ebx + 0x15c], ecx
jne 0x4be5a8
mov eax, dword [ebx]
test byte [eax + 0x34], 8
jne 0x4be5a8
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x4b6320
mov dword [ebp - 0x54], ebx
call fcn.0047adc0
add esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xcc]
push 0x45
push eax
push ecx
call fcn.0047d990
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4be5e8
cmp dword [ebp - 0xc], 0
je 0x4be5d5
mov eax, dword [ebp + 0x10]
call fcn.0047b5d0
test eax, eax
je 0x4be5e8
mov edx, dword [esi + 0x18]
mov eax, dword [ebp + 0x10]
push 8
push edx
push eax
push ebx
call fcn.004b2910
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x1c], 0
cmp dx, word [ecx]
jge 0x4be646
lea ebx, [ecx + 0x18]
lea esp, [esp]
mov eax, dword [edi]
mov edx, dword [ebx + 0x1c]
mov dword [edi + eax*4 + 4], edx
inc dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x4be635
test byte [eax + 0x2a], 0x10
je 0x4be635
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xcc]
mov eax, 1
xor edx, edx
call fcn.0053bb30
or dword [esi + 8], eax
or dword [esi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
movsx edx, word [ecx]
inc eax
add ebx, 0x48
mov dword [ebp - 0x1c], eax
cmp eax, edx
jl 0x4be600
mov edi, dword [ebp - 0xcc]
mov esi, dword [edi + 0x18]
dec esi
js 0x4be669
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call fcn.004b6880
add esp, 0xc
dec esi
jns 0x4be655
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x38], 0
jne 0x4bea74
mov esi, dword [ebp + 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x4be69d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
push edi
push ecx
call fcn.0049b510
add esp, 0xc
test eax, eax
je 0x4be69d
mov edx, dword [ebp - 0x10]
xor esi, esi
mov byte [edx + 0xe], 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
or edx, 0xffffffff
mov dword [ebp - 0xac], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 4], esi
cmp eax, ebx
jle 0x4bea3a
dec eax
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 0x44]
fld qword [0x583a08]
xor eax, eax
or ecx, 0xffffffff
cmp edi, dword [ebp - 0x38]
mov esi, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
fstp qword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], eax
setl al
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x48], eax
test eax, eax
js 0x4be927
lea ebx, [ebx]
test ecx, ecx
jns 0x4be924
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi*8]
lea ebx, [ecx + eax*8 + 8]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0xc8], ebx
cmp edi, dword [ebp - 0xc]
jge 0x4be918
mov eax, dword [ebp - 0x10]
mov edx, edi
imul edx, edx, 0x58
lea ecx, [edx + eax + 0x80]
mov dword [ebp - 0x1c], ecx
jmp 0x4be770
test byte [ebx + 0x20], 0xa
mov eax, 0
setne al
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x30], edi
je 0x4be78c
test eax, eax
jne 0x4be918
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
cmp dword [esi], ecx
jle 0x4be7ac
mov edx, dword [ebx + 0x2c]
lea eax, [esi + 4]
jmp 0x4be7a0
cmp dword [eax], edx
je 0x4be7d6
inc ecx
add eax, 4
cmp ecx, dword [esi]
jl 0x4be7a0
xor eax, eax
xor edx, edx
mov ecx, eax
and ecx, dword [ebp - 0xb8]
mov esi, edx
and esi, dword [ebp - 0xb4]
or ecx, esi
jne 0x4be7e4
cmp dword [ebp - 0x30], edi
jne 0x4be8fb
inc edi
mov dword [ebp - 0x44], edi
jmp 0x4be8fb
mov eax, 1
xor edx, edx
call fcn.0053bb30
jmp 0x4be7b0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4be7f9
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
jmp 0x4be811
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xbc], eax
cmp dword [ebx + 0x44], 0
jne 0x4be81a
inc dword [ebp - 0x40]
mov ecx, dword [ebx + 0x10]
test byte [ecx + 0x2a], 0x10
je 0x4be83d
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0xd0]
lea edx, [ebx + 8]
push eax
mov dword [ebp - 0xa8], edx
call fcn.004a1d00
jmp 0x4be84c
lea ecx, [ebp - 0xd0]
push ecx
call fcn.0049b950
mov ebx, dword [ebp - 0x1c]
add esp, 4
test esi, esi
je 0x4be85a
fld qword [ebp - 0x80]
fstp qword [ebx]
jmp 0x4be867
cmp edi, dword [ebp - 0x38]
jge 0x4be867
fld qword [ebp - 0x80]
fdiv qword [ebx]
fstp qword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
and eax, dword [ebp - 0xb8]
and ecx, dword [ebp - 0xb4]
mov ebx, dword [ebp - 0xc8]
or eax, ecx
jne 0x4be8f5
cmp dword [ebp - 0x40], 0
je 0x4be89b
cmp dword [ebx + 0x44], 0
je 0x4be89b
test dword [ebp - 0x98], 0x100f3000
je 0x4be8f5
cmp dword [ebp - 0x14], 0
jl 0x4be8dc
fld qword [ebp - 0x58]
fld qword [ebp - 0x80]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x4be8d8
fcompp
fnstsw ax
test ah, 0x41
je 0x4be8f5
mov dx, word [ebp - 0x92]
cmp dx, word [ebp - 0x6a]
ja 0x4be8dc
fld qword [ebp - 0x68]
fcomp qword [ebp - 0x90]
fnstsw ax
test ah, 0x41
jne 0x4be8f5
jmp 0x4be8dc
fstp st(1)
fstp st(0)
mov eax, dword [ebp - 0x30]
mov ecx, 0xa
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x28], 0
jne 0x4be918
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x1c], 0x58
inc eax
add ebx, 0x48
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc8], ebx
cmp eax, dword [ebp - 0xc]
jl 0x4be770
dec dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
jns 0x4be730
mov esi, dword [ebp - 0x70]
test esi, 0x40000000
je 0x4be936
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xe], 2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x6c]
and dword [ebp - 0x24], esi
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x68]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x64]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x14], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*8]
lea edi, [edx + ecx*8]
mov ecx, dword [edi + 0x34]
mov dword [eax + 0x1c], ecx
test esi, 0x200f0000
je 0x4be998
cmp word [ebp - 0x20], 0
je 0x4be98a
test esi, 0x20000000
jne 0x4be98a
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x20], edx
jmp 0x4be99f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x20], edx
inc dword [ecx + 0x48]
jmp 0x4be99f
mov dword [eax + 0x20], 0xffffffff
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x4be9bd
mov edx, dword [edi + 0x34]
mov ebx, dword [ebp - 0x3c]
add eax, 4
cmp dword [eax], edx
je 0x4be9fb
inc ecx
add eax, 4
cmp ecx, dword [ebx]
jl 0x4be9b1
xor eax, eax
xor edx, edx
fld1
mov ecx, dword [ebp - 4]
fld qword [ebp - 0x68]
not eax
and dword [ebp - 0xb8], eax
fcom st(1)
mov al, byte [ebp - 0x14]
not edx
and dword [ebp - 0xb4], edx
mov byte [ecx + 0x34], al
fnstsw ax
fstp st(1)
test ah, 1
mov eax, dword [ebp + 8]
jne 0x4bea09
fmul qword [eax + 0x1b8]
fstp qword [eax + 0x1b8]
jmp 0x4bea0b
mov eax, 1
xor edx, edx
call fcn.0053bb30
jmp 0x4be9c1
fstp st(0)
mov edi, dword [edi + 0x4c]
test edi, edi
je 0x4bea1a
test esi, 0xf0000
je 0x4bea62
mov eax, dword [ebp - 0xa4]
add dword [ebp - 4], 0x58
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, dword [ebp - 0xc]
jl 0x4be6e2
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x44], 0
jne 0x4bea74
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x38], 0
jne 0x4bea74
cmp dword [ebp - 0xc], 0
mov edi, dword [ebp - 0x10]
je 0x4bea99
mov eax, dword [ebp - 4]
mov dx, word [eax - 0x52]
mov word [edi + 8], dx
jmp 0x4bea9f
mov edx, dword [edi]
push edx
push str.cannot_use_index:__s
mov esi, eax
call fcn.0047fe90
add esp, 8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
fld qword [eax + 0x28]
mov ecx, dword [ebp + 8]
push eax
fstp qword [ecx + 0x1b8]
push edx
call fcn.0047e000
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [edi + 8], ax
mov eax, dword [ebp - 0x24]
and eax, 0x2000000
je 0x4beab4
test ecx, ecx
je 0x4beab4
mov cx, word [ecx]
mov word [edi + 8], cx
test byte [ebp + 0x1c], 4
je 0x4beac8
test eax, eax
je 0x4beac8
and dword [esi], 0xffbfffff
mov byte [edi + 0xc], 1
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
push ebx
call fcn.004affe0
fld1
mov eax, dword [ebp - 0xc]
fstp qword [edi + 0x30]
add esp, 4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], esi
test eax, eax
jle 0x4bee12
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x34]
fld qword [edx + 8]
mov ecx, dword [ebp + 0xc]
fmul qword [edi + 0x30]
lea eax, [eax + eax*8]
mov esi, dword [ecx + eax*8 + 0x18]
lea ebx, [ecx + eax*8 + 8]
fstp qword [edi + 0x30]
mov ecx, dword [esi + 0x40]
mov eax, 0xfff0bdc0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x4beb56
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x14]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jle 0x4beb56
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x10]
add ecx, 0xc
mov edi, edi
mov edx, dword [esi + 0x40]
cmp dword [ecx], edx
je 0x4beb50
inc eax
add ecx, 0x10
cmp eax, dword [ebp - 0x20]
jl 0x4beb40
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
test byte [esi + 0x2a], 2
jne 0x4becbb
cmp dword [esi + 0xc], 0
jne 0x4becbb
mov edx, dword [edx]
test edx, 0x8000000
je 0x4bec3b
mov ebx, dword [esi + 0x38]
xor ecx, ecx
cmp ebx, ecx
je 0x4beb8f
mov eax, dword [ebp - 0x18]
cmp dword [ebx], eax
je 0x4beb8f
mov ebx, dword [ebx + 0x18]
cmp ebx, ecx
jne 0x4beb84
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x1c]
mov dword [ebp - 0x20], edx
cmp dword [eax + 0x20], esi
jg 0x4bebb9
mov edi, eax
call fcn.00479680
test eax, eax
je 0x4bebb5
mov eax, 1
jmp 0x4bebdf
xor ecx, ecx
mov eax, edi
inc dword [eax + 0x1c]
mov eax, dword [eax + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x20]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x87
mov eax, esi
mov ecx, dword [ebp - 8]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
test esi, esi
je 0x4becbb
cmp byte [edi + 0x38], 0
jne 0x4becbb
test eax, eax
jns 0x4bec03
mov eax, ecx
mov eax, dword [eax + 0x1c]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.00479990
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x4bec2c
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4becbb
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x4becbb
test edx, 0x400000
jne 0x4beca6
test byte [ebp + 0x1c], 0x10
jne 0x4beca6
xor edx, edx
cmp byte [edi + 0xc], dl
setne dl
add edx, 0x27
push edx
push esi
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebp + 8]
call fcn.0048deb0
add esp, 0x10
cmp byte [edi + 0xc], 0
jne 0x4becbb
cmp word [esi + 0x26], 0x40
jge 0x4becbb
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x4bec8e
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x4bec81
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x1c]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.00479ac0
add esp, 8
jmp 0x4becbb
mov ecx, dword [esi]
mov edx, dword [esi + 0x20]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.0047bf00
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, 0x20000000
je 0x4becef
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
mov edx, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.004a14c0
add esp, 0x18
jmp 0x4bedbb
test eax, 0xf0000
je 0x4bedbb
mov edi, dword [ebp - 4]
mov esi, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.00495a50
mov edx, dword [esi + 0x28]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x1c]
add esp, 8
mov dword [ebp - 0x20], edx
cmp dword [eax + 0x20], esi
jg 0x4bed38
mov edi, eax
call fcn.00479680
test eax, eax
je 0x4bed36
mov eax, 1
jmp 0x4bed65
mov eax, edi
mov edx, dword [eax + 4]
inc dword [eax + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x27
mov eax, esi
mov ecx, dword [ebp - 8]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
xor ebx, ebx
cmp esi, ebx
je 0x4bedae
cmp byte [edi + 0x38], bl
jne 0x4bedae
cmp eax, ebx
jge 0x4bed80
mov eax, dword [ecx + 0x1c]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.00479990
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x4beda5
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4bedbb
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x4bedbb
mov ecx, dword [ebp - 0x34]
mov eax, 0xfffffff0
call fcn.00479990
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push ecx
call fcn.004affe0
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx + 4]
mov edx, dword [eax]
add esp, 4
xor ecx, ecx
test edx, edx
jle 0x4bedf4
mov esi, dword [ebp - 0x24]
mov esi, dword [esi + 0x2c]
add eax, 4
cmp dword [eax], esi
je 0x4bee90
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4bede4
xor eax, eax
xor edx, edx
add dword [ebp - 4], 0x58
mov edi, dword [ebp - 0x10]
not eax
and dword [ebp - 0x2c], eax
not edx
and dword [ebp - 0x28], edx
dec dword [ebp - 0x38]
jne 0x4beaf3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x10], ecx
cmp byte [edx + 0x38], 0
jne 0x4bea74
or ebx, 0xffffffff
xor esi, esi
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0xc], esi
jle 0x4bee86
mov edi, dword [ebp - 0x10]
add edi, 0x64
jmp 0x4bee40
mov eax, dword [ebp + 0x1c]
movzx ecx, byte [edi + 8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push esi
lea edx, [edi - 0x2c]
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00487b60
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
push ecx
push ebx
push edx
push esi
push eax
call fcn.004b7310
mov ecx, dword [edi]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
inc esi
add esp, 0x28
add edi, 0x58
mov ebx, eax
mov dword [edx + 0x14], ecx
cmp esi, dword [ebp - 0xc]
jl 0x4bee40
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
xor edx, edx
call fcn.0053bb30
jmp 0x4bedf8