Function at 0x525060
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add eax, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
push dword [esp + 0x44]
cmp word [ebp + 2], 0
push dword [esp + 0x44]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
je 0x525445
call fcn.00524bf0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x525403
mov eax, dword [esp + 0x28]
or esi, 0xffffffff
movzx edi, word [ebp]
mov ecx, eax
mov ebx, dword [esp + 0x24]
and ecx, 0x1f
shl ebx, cl
sub esi, edi
add eax, edi
shr ebx, 1
and esi, 0x1f
mov dword [esp + 0x28], eax
mov ecx, esi
lea eax, [esp + 0x24]
shr ebx, cl
push eax
mov dword [esp + 0x20], ebx
call fcn.00524d00
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, dword [esp + 0x28]
and ecx, 0x1f
shl edx, cl
add eax, edi
shr edx, 1
mov ecx, esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
shr edx, cl
push eax
mov dword [esp + 0x28], edx
call fcn.00524d00
mov eax, dword [esp + 0x2c]
add esp, 8
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp edi, 0x20
ja 0x5252bd
lea eax, [ebp + 4]
cmp esi, eax
jb 0x525145
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov dword [esp + 0x2c], esi
mov ebx, dword [esi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
jmp 0x525182
cmp esi, ebp
je 0x5252bd
mov ecx, edi
mov eax, esi
shr ecx, 3
xor edx, edx
sub eax, ecx
cmp eax, ebp
jae 0x525165
mov ecx, esi
mov edx, 1
sub ecx, ebp
imul eax, ecx, 0xfffffff8
sub esi, ecx
mov dword [esp + 0x2c], esi
mov ebx, dword [esi]
add edi, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x5252bd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0xfffffffd
cmp ecx, eax
jae 0x5252b7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
mov edx, dword [eax + edx*4 + 4]
mov eax, edx
shr eax, 0x18
lea esi, [eax + edi]
neg eax
and edi, 0x1f
and eax, 0x1f
mov ecx, edi
mov edi, dword [esp + 0x10]
shl ebx, cl
mov ecx, eax
movzx eax, dx
shr edx, 0x10
shr ebx, cl
add ebx, eax
mov byte [ebp], dl
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ebx
mov ebx, dword [eax + edx*4 + 4]
mov edx, ebx
shr edx, 0x18
lea eax, [edx + esi]
and esi, 0x1f
neg edx
mov dword [esp + 0x28], eax
mov ecx, esi
movzx eax, bx
shl edi, cl
and edx, 0x1f
mov ecx, edx
shr ebx, 0x10
shr edi, cl
add edi, eax
mov byte [ebp + 1], bl
lea eax, [esp + 0x24]
mov dword [esp + 0x20], edi
push eax
call fcn.00524d00
add esp, 4
test eax, eax
jg 0x52529a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edi, ebx
mov dword [esp + 0x10], ebx
mov edx, dword [eax + edx*4 + 4]
mov eax, edx
shr eax, 0x18
lea esi, [eax + ecx]
neg eax
and eax, 0x1f
and ecx, 0x1f
shl edi, cl
mov ecx, eax
movzx eax, dx
shr edi, cl
add edi, eax
shr edx, 0x10
mov eax, dword [esp + 0x48]
mov byte [ebp + 2], dl
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov edx, dword [eax + edx*4 + 4]
mov eax, edx
shr eax, 0x18
lea edi, [eax + esi]
and esi, 0x1f
neg eax
mov ecx, esi
shl ebx, cl
and eax, 0x1f
mov ecx, eax
movzx eax, dx
shr ebx, cl
shr edx, 0x10
add ebx, eax
mov byte [ebp + 3], dl
add ebp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
jmp 0x525113
mov eax, dword [esp + 0x24]
add ebp, 2
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jmp 0x5252c1
mov eax, dword [esp + 0x10]
jmp 0x5252c5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
ja 0x5253fe
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov ebx, dword [esp + 0x48]
and ecx, 0x1f
shl eax, cl
mov ebx, dword [ebx + edx*4 + 4]
mov edx, ebx
shr edx, 0x18
mov ecx, edx
add edi, edx
neg ecx
and ecx, 0x1f
shr eax, cl
movzx ecx, bx
add ecx, eax
shr ebx, 0x10
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x14], ecx
cmp edi, 0x20
ja 0x525428
lea eax, [ebp + 4]
cmp esi, eax
jb 0x525330
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x52535c
cmp esi, ebp
je 0x525358
mov edx, edi
mov eax, esi
shr edx, 3
sub eax, edx
cmp eax, ebp
jae 0x525345
mov edx, esi
sub edx, ebp
sub esi, edx
lea eax, [edx*8]
sub edi, eax
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x52535c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
ja 0x5253fe
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov ebx, dword [ecx + edx*4 + 4]
mov ecx, edi
and ecx, 0x1f
mov edx, ebx
shl eax, cl
shr edx, 0x18
mov ecx, edx
add edi, edx
neg ecx
and ecx, 0x1f
shr eax, cl
movzx ecx, bx
add ecx, eax
shr ebx, 0x10
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov byte [ecx], bl
inc ecx
mov dword [esp + 0x14], ecx
cmp edi, 0x20
ja 0x52540b
lea eax, [ebp + 4]
cmp esi, eax
jb 0x5253c3
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x5253ef
cmp esi, ebp
je 0x5253eb
mov edx, edi
mov eax, esi
shr edx, 3
sub eax, edx
cmp eax, ebp
jae 0x5253d8
mov edx, esi
sub edx, ebp
sub esi, edx
lea eax, [edx*8]
sub edi, eax
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x5253ef
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
jbe 0x5252d4
mov eax, 0xffffffba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, byte [eax + edx*4 + 6]
mov byte [ecx], al
sub ecx, dword [esp + 0x2c]
pop ebx
lea eax, [ecx + 1]
add esp, 0x24
ret
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, byte [eax + edx*4 + 6]
mov byte [ecx], al
sub ecx, dword [esp + 0x2c]
pop ebx
lea eax, [ecx + 1]
add esp, 0x24
ret
call fcn.00524bf0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x525403
mov eax, dword [esp + 0x28]
or esi, 0xffffffff
movzx edi, word [ebp]
mov ecx, eax
mov ebx, dword [esp + 0x24]
and ecx, 0x1f
shl ebx, cl
sub esi, edi
add eax, edi
shr ebx, 1
and esi, 0x1f
mov dword [esp + 0x28], eax
mov ecx, esi
lea eax, [esp + 0x24]
shr ebx, cl
push eax
mov dword [esp + 0x24], ebx
call fcn.00524d00
mov edx, dword [esp + 0x28]
lea eax, [ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
and ecx, 0x1f
add eax, edi
shl edx, cl
mov ecx, esi
shr edx, 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
shr edx, cl
push eax
mov dword [esp + 0x24], edx
call fcn.00524d00
mov eax, dword [esp + 0x2c]
add esp, 8
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], eax
nop word [eax + eax]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp edi, 0x20
ja 0x52567e
lea eax, [ebp + 4]
cmp esi, eax
jb 0x525502
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov dword [esp + 0x2c], esi
mov ebx, dword [esi]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
jmp 0x52553f
cmp esi, ebp
je 0x52567e
mov ecx, edi
mov eax, esi
shr ecx, 3
xor edx, edx
sub eax, ecx
cmp eax, ebp
jae 0x525522
mov ecx, esi
mov edx, 1
sub ecx, ebp
imul eax, ecx, 0xfffffff8
sub esi, ecx
mov dword [esp + 0x2c], esi
mov ebx, dword [esi]
add edi, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x52567e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0xfffffffd
cmp ecx, eax
jae 0x525678
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edx, dword [edx + ecx*4]
mov eax, edx
shr eax, 0x18
lea esi, [edi + eax]
and edi, 0x1f
mov ecx, edi
not eax
shl ebx, cl
and eax, 0x1f
mov edi, dword [esp + 0x48]
mov ecx, eax
movzx eax, dx
shr ebx, 1
shr ebx, cl
mov ecx, dword [esp + 0x1c]
add ebx, eax
mov eax, dword [esp + 0x10]
shr edx, 0x10
mov byte [ebp], dl
mov dword [esp + 0x20], ebx
mov ebx, dword [eax + ecx*4]
mov edx, ebx
shr edx, 0x18
lea eax, [edx + esi]
and esi, 0x1f
mov ecx, esi
mov dword [esp + 0x28], eax
shl edi, cl
not edx
and edx, 0x1f
shr edi, 1
mov ecx, edx
movzx eax, bx
shr edi, cl
add edi, eax
shr ebx, 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], edi
push eax
mov byte [ebp + 1], bl
call fcn.00524d00
add esp, 4
test eax, eax
jg 0x52565b
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov edi, ebx
mov dword [esp + 0x48], ebx
mov edx, dword [eax + ecx*4]
mov eax, edx
mov ecx, dword [esp + 0x28]
shr eax, 0x18
lea esi, [ecx + eax]
not eax
and eax, 0x1f
and ecx, 0x1f
shl edi, cl
mov ecx, eax
shr edi, 1
shr edi, cl
mov ecx, dword [esp + 0x1c]
movzx eax, dx
add edi, eax
shr edx, 0x10
mov eax, dword [esp + 0x10]
mov byte [ebp + 2], dl
mov dword [esp + 0x20], edi
mov edx, dword [eax + ecx*4]
mov eax, edx
shr eax, 0x18
lea edi, [eax + esi]
and esi, 0x1f
mov ecx, esi
not eax
shl ebx, cl
and eax, 0x1f
shr ebx, 1
mov ecx, eax
movzx eax, dx
shr ebx, cl
shr edx, 0x10
add ebx, eax
mov byte [ebp + 3], dl
add ebp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
jmp 0x5254d0
mov eax, dword [esp + 0x24]
add ebp, 2
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x48], eax
jmp 0x525682
mov eax, dword [esp + 0x48]
jmp 0x525686
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
ja 0x5253fe
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + ecx*4]
mov ecx, edi
and ecx, 0x1f
mov edx, ebx
shl eax, cl
or ecx, 0xffffffff
shr edx, 0x18
sub ecx, edx
shr eax, 1
and ecx, 0x1f
add edi, edx
mov edx, dword [esp + 0x14]
shr eax, cl
movzx ecx, bx
shr ebx, 0x10
add ecx, eax
mov byte [edx], bl
inc edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
cmp edi, 0x20
ja 0x5257ed
lea eax, [ebp + 4]
cmp esi, eax
jb 0x5256f3
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x48], eax
jmp 0x52571f
cmp esi, ebp
je 0x52571b
mov ecx, edi
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, ebp
jae 0x525708
mov ecx, esi
sub ecx, ebp
sub esi, ecx
lea eax, [ecx*8]
sub edi, eax
mov eax, dword [esi]
mov dword [esp + 0x48], eax
jmp 0x52571f
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
cmp edx, ecx
ja 0x5253fe
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + ecx*4]
mov ecx, edi
and ecx, 0x1f
mov edx, ebx
shl eax, cl
or ecx, 0xffffffff
shr edx, 0x18
sub ecx, edx
shr eax, 1
and ecx, 0x1f
add edi, edx
mov edx, dword [esp + 0x14]
shr eax, cl
movzx ecx, bx
shr ebx, 0x10
add ecx, eax
mov byte [edx], bl
inc edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
cmp edi, 0x20
ja 0x5257d0
lea eax, [ebp + 4]
cmp esi, eax
jb 0x525788
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x48], eax
jmp 0x5257b4
cmp esi, ebp
je 0x5257b0
mov ecx, edi
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, ebp
jae 0x52579d
mov ecx, esi
sub ecx, ebp
sub esi, ecx
lea eax, [ecx*8]
sub edi, eax
mov eax, dword [esi]
mov dword [esp + 0x48], eax
jmp 0x5257b4
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
cmp edx, ecx
jbe 0x525695
pop edi
pop esi
pop ebp
mov eax, 0xffffffba
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, byte [eax + ecx*4 + 2]
mov byte [edx], al
sub edx, dword [esp + 0x2c]
pop ebx
lea eax, [edx + 1]
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, byte [eax + ecx*4 + 2]
mov byte [edx], al
sub edx, dword [esp + 0x2c]
pop ebx
lea eax, [edx + 1]
add esp, 0x24
ret