Function at 0x541a80
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 0x541e65
call fcn.005418a0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541e23
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.00539a50
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.00539a50
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 0x541cdd
lea eax, [ebp + 4]
cmp esi, eax
jb 0x541b65
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 0x541ba2
cmp esi, ebp
je 0x541cdd
mov ecx, edi
mov eax, esi
shr ecx, 3
xor edx, edx
sub eax, ecx
cmp eax, ebp
jae 0x541b85
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 0x541cdd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0xfffffffd
cmp ecx, eax
jae 0x541cd7
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.00539a50
add esp, 4
test eax, eax
jg 0x541cba
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 0x541b33
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 0x541ce1
mov eax, dword [esp + 0x10]
jmp 0x541ce5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
ja 0x541e1e
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 0x541e48
lea eax, [ebp + 4]
cmp esi, eax
jb 0x541d50
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x541d7c
cmp esi, ebp
je 0x541d78
mov edx, edi
mov eax, esi
shr edx, 3
sub eax, edx
cmp eax, ebp
jae 0x541d65
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 0x541d7c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
ja 0x541e1e
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 0x541e2b
lea eax, [ebp + 4]
cmp esi, eax
jb 0x541de3
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x541e0f
cmp esi, ebp
je 0x541e0b
mov edx, edi
mov eax, esi
shr edx, 3
sub eax, edx
cmp eax, ebp
jae 0x541df8
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 0x541e0f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
jbe 0x541cf4
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.005418a0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x541e23
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.00539a50
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.00539a50
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 0x54209e
lea eax, [ebp + 4]
cmp esi, eax
jb 0x541f22
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 0x541f5f
cmp esi, ebp
je 0x54209e
mov ecx, edi
mov eax, esi
shr ecx, 3
xor edx, edx
sub eax, ecx
cmp eax, ebp
jae 0x541f42
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 0x54209e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0xfffffffd
cmp ecx, eax
jae 0x542098
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.00539a50
add esp, 4
test eax, eax
jg 0x54207b
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 0x541ef0
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 0x5420a2
mov eax, dword [esp + 0x48]
jmp 0x5420a6
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edx, 0xfffffffe
cmp ecx, edx
ja 0x541e1e
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 0x54220d
lea eax, [ebp + 4]
cmp esi, eax
jb 0x542113
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x48], eax
jmp 0x54213f
cmp esi, ebp
je 0x54213b
mov ecx, edi
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, ebp
jae 0x542128
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 0x54213f
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
cmp edx, ecx
ja 0x541e1e
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 0x5421f0
lea eax, [ebp + 4]
cmp esi, eax
jb 0x5421a8
mov eax, edi
shr eax, 3
sub esi, eax
and edi, 7
mov eax, dword [esi]
mov dword [esp + 0x48], eax
jmp 0x5421d4
cmp esi, ebp
je 0x5421d0
mov ecx, edi
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, ebp
jae 0x5421bd
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 0x5421d4
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
cmp edx, ecx
jbe 0x5420b5
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